Better enumeration of fzy directories
This commit is contained in:
parent
972d2dee11
commit
2f01eaf9f9
|
@ -112,24 +112,40 @@ function zvm_after_init() {
|
|||
fi
|
||||
if [ ! -f $FZY_CACHE ]; then
|
||||
PATHS=""
|
||||
if [ -d ~/.dotfiles ]; then
|
||||
PATHS="$PATHS\n~/.dotfiles"
|
||||
PATHS="$PATHS\n$(fd . ~/.dotfiles -t d -d 2)"
|
||||
fi
|
||||
if [ -d ~/Workspace ]; then
|
||||
PATHS="$PATHS\n$(fd . ~/Workspace -t d -d 8)"
|
||||
fi
|
||||
if [ -d ~/Containers ]; then
|
||||
PATHS="$PATHS\n$(fd . ~/Containers -t d -d 2)"
|
||||
fi
|
||||
if [ -d ~/Storage/Shared ]; then
|
||||
PATHS="$PATHS\n/home/server/Storage/Shared"
|
||||
PATHS="$PATHS\n$(fd . ~/Storage/Shared -t d -d 2)"
|
||||
fi
|
||||
if [ -d ~/Storage/Thomas ]; then
|
||||
PATHS="$PATHS\n/home/server/Storage/Thomas"
|
||||
PATHS="$PATHS\n$(fd . ~/Storage/Thomas -t d -d 5)"
|
||||
fi
|
||||
|
||||
for i in \
|
||||
~/.config/waybar \
|
||||
~/.config/xmodmap \
|
||||
~/.config/zsh \
|
||||
~/.config/tmux \
|
||||
~/.config/vim \
|
||||
~/.config/qtile \
|
||||
~/.config/rofi \
|
||||
~/.config/scripts \
|
||||
~/.config/nvim \
|
||||
~/.config/picom \
|
||||
~/.config/polybar \
|
||||
~/.config/awesome \
|
||||
~/.config/dunst \
|
||||
~/.config/firefox \
|
||||
~/.config/git \
|
||||
~/.config/gitui \
|
||||
~/.config/helix \
|
||||
~/.config/hypr \
|
||||
~/.config/i3 \
|
||||
~/.config/kitty \
|
||||
~/.config/mpv \
|
||||
~/.config/alacritty \
|
||||
~/Workspace \
|
||||
~/Containers \
|
||||
~/Storage/Shared \
|
||||
~/Storage/Thomas; do
|
||||
|
||||
if [ -d $i ]; then
|
||||
PATHS="$PATHS\n$i/"
|
||||
PATHS="$PATHS\n$(fd . $i -t d -d 5)"
|
||||
fi
|
||||
done
|
||||
echo -e $PATHS > $FZY_CACHE
|
||||
fi
|
||||
cd_to "$(cat $FZY_CACHE | fzy -l 20)"
|
||||
|
@ -257,7 +273,7 @@ alias ll='ls -lhat'
|
|||
alias clip="xsel --clipboard"
|
||||
alias compress="tar --use-compress-program=lbzip2 -cvf"
|
||||
alias vim="nvim"
|
||||
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
|
||||
alias dot='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'
|
||||
alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
|
||||
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
|
||||
alias python=python3
|
||||
|
|
Loading…
Reference in New Issue