Merge branch 'master' into laptop

This commit is contained in:
Thomas Avé 2024-03-25 01:19:15 +01:00
commit 3e12cab557
1 changed files with 6 additions and 6 deletions

View File

@ -91,22 +91,22 @@ function zvm_after_init() {
function find_files() { function find_files() {
zle -I zle -I
PATHS="" PATHS=""
if [ -d ~/.dotfiles]; then if [ -d ~/.dotfiles ]; then
PATHS="$PATHS\n$(fd -H . ~/.dotfiles -t d -d 5)" PATHS="$PATHS\n$(fd . ~/.dotfiles -t d -d 1)"
fi fi
if [ -d ~/Workspace ]; then if [ -d ~/Workspace ]; then
PATHS="$PATHS\n$(fd -H . ~/Workspace -t d -d 5)" PATHS="$PATHS\n$(fd . ~/Workspace -t d -d 5)"
fi fi
if [ -d ~/Containers ]; then if [ -d ~/Containers ]; then
PATHS="$PATHS\n$(fd -H . ~/Containers -t d -d 2)" PATHS="$PATHS\n$(fd . ~/Containers -t d -d 2)"
fi fi
if [ -d ~/Storage/Shared ]; then if [ -d ~/Storage/Shared ]; then
PATHS="$PATHS\n~/Storage/Shared" PATHS="$PATHS\n~/Storage/Shared"
PATHS="$PATHS\n$(fd -H . ~/Storage/Shared -t d -d 2)" PATHS="$PATHS\n$(fd . ~/Storage/Shared -t d -d 2)"
fi fi
if [ -d ~/Storage/Thomas ]; then if [ -d ~/Storage/Thomas ]; then
PATHS="$PATHS\n~/Storage/Thomas" PATHS="$PATHS\n~/Storage/Thomas"
PATHS="$PATHS\n$(fd -H . ~/Storage/Thomas -t d -d 1)" PATHS="$PATHS\n$(fd . ~/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