Append last selection to top of fzy cache
This commit is contained in:
parent
f8b3a4979e
commit
e3abbe810c
|
@ -77,13 +77,14 @@ function find_global() {
|
||||||
search_dirs=(~/Workspace/ ~/Containers/ /home/server/Storage/Thomas/)
|
search_dirs=(~/Workspace/ ~/Containers/ /home/server/Storage/Thomas/)
|
||||||
for i in "$search_dirs[@]"; do
|
for i in "$search_dirs[@]"; do
|
||||||
if [ -d $i ]; then
|
if [ -d $i ]; then
|
||||||
PATHS="$PATHS$i\n"
|
PATHS="$PATHS\n$i"
|
||||||
PATHS+="$(fd . $i -t $file_type -d 8)"
|
PATHS+="\n$(fd . $i -t $file_type -d 8)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -e "$PATHS" > $FZY_CACHE
|
echo -e "$PATHS" > $FZY_CACHE
|
||||||
fi
|
fi
|
||||||
file="$(cat $FZY_CACHE | fzy -l 20)"
|
file="$(cat $FZY_CACHE | fzy -l 20)"
|
||||||
|
echo $file | cat - $FZY_CACHE | awk '!x[$0]++' > /tmp/fzy_paths_$file_type && mv /tmp/fzy_paths_$file_type $FZY_CACHE
|
||||||
echo $file
|
echo $file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +247,7 @@ export ARCHFLAGS="-arch x86_64"
|
||||||
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
export TERM="screen-256color"
|
export TERM="screen-256color"
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH
|
||||||
export GOPATH=/tmp/go
|
export GOPATH=/tmp/go
|
||||||
|
|
||||||
if command -v micromamba &> /dev/null; then
|
if command -v micromamba &> /dev/null; then
|
||||||
|
@ -309,6 +310,7 @@ alias mallorea="run_waypipe mallorea"
|
||||||
alias vault="run_waypipe vault"
|
alias vault="run_waypipe vault"
|
||||||
alias riva="run_waypipe riva"
|
alias riva="run_waypipe riva"
|
||||||
alias kell="run_waypipe kell"
|
alias kell="run_waypipe kell"
|
||||||
|
alias aloria="run_waypipe aloria"
|
||||||
|
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias gdb='gdb -q'
|
alias gdb='gdb -q'
|
||||||
|
|
Loading…
Reference in New Issue