Tweak search paths
This commit is contained in:
parent
3b81d0104f
commit
6d11fedfb9
12
zsh/.zshrc
12
zsh/.zshrc
|
@ -90,9 +90,17 @@ function zvm_after_init() {
|
||||||
# Use FZY instead of FZF for ctrl-t
|
# Use FZY instead of FZF for ctrl-t
|
||||||
function find_files() {
|
function find_files() {
|
||||||
zle -I
|
zle -I
|
||||||
PATHS=$(fd -H . ~/Workspace -t d -d 5)
|
PATHS=$(fd -H . /home/server/Workspace -t d -d 5)
|
||||||
if [ -d ~/Containers ]; then
|
if [ -d ~/Containers ]; then
|
||||||
PATHS="$PATHS $(fd -H . ~/Containers -t d -d 2)"
|
PATHS="$PATHS\n$(fd -H . ~/Containers -t d -d 2)"
|
||||||
|
fi
|
||||||
|
if [ -d /RAID/10/Shared\ Storage/ ]; then
|
||||||
|
PATHS="$PATHS\n/RAID/10/Shared Storage/Thomas"
|
||||||
|
PATHS="$PATHS\n$(fd -H . /RAID/10/Shared\ Storage -t d -d 2)"
|
||||||
|
fi
|
||||||
|
if [ -d /RAID/10/Private\ Storage/Thomas ]; then
|
||||||
|
PATHS="$PATHS\n/RAID/10/Private Storage/Thomas"
|
||||||
|
PATHS="$PATHS\n$(fd -H . /RAID/10/Private\ Storage/Thomas -t d -d 1)"
|
||||||
fi
|
fi
|
||||||
BUFFER=cd "$(echo $PATHS | fzy -l 20)"
|
BUFFER=cd "$(echo $PATHS | fzy -l 20)"
|
||||||
zle accept-line
|
zle accept-line
|
||||||
|
|
Loading…
Reference in New Issue