Laptop #2

Closed
thomasave wants to merge 119 commits from laptop into master
1 changed files with 6 additions and 6 deletions
Showing only changes of commit 3e12cab557 - Show all commits

View File

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