feat: add and use zoxide

This commit is contained in:
Oliver Davies 2022-10-12 07:59:47 +01:00
parent f7df88b616
commit 7cfdca5a06
3 changed files with 13 additions and 8 deletions

View file

@ -11,7 +11,7 @@ if [[ $# -eq 1 ]]; then
else
# Get the session name from fuzzy-finding list of directories and generating a
# tmux-safe version.
selected=$(find ~/ ~/Code ~/Code/clients ~/Code/os ~/Code/Personal ~/Documents/Books ~/Documents/Talks/ -mindepth 1 -maxdepth 1 -type d -not -name ".*" | sort | fzf)
selected=$(zoxide query -l | sort | fzf --reverse)
fi
if [[ -z $selected ]]; then