Removed fasd stuff.

This commit is contained in:
Keanu Timmermans 2021-01-17 12:07:31 +01:00
parent 62611bb01e
commit 159a142967
Signed by: keanucode
GPG key ID: A7431C0D513CA93B

View file

@ -64,22 +64,22 @@ _plugin completions 'zsh-users/zsh-completions' "$_checkout_latest_version"
# fasd {{{ # fasd {{{
unalias j #unalias j
j() { #j() {
local _fasd_ret # local _fasd_ret
_fasd_ret="$( # _fasd_ret="$(
# -l: list all paths in the database (without scores) # # -l: list all paths in the database (without scores)
# -d: list only directories # # -d: list only directories
# -R: in the reverse order # # -R: in the reverse order
fasd -l -d -R | # fasd -l -d -R |
fzf --height=40% --layout=reverse --tiebreak=index --query="$*" # fzf --height=40% --layout=reverse --tiebreak=index --query="$*"
)" # )"
if [[ -d "$_fasd_ret" ]]; then # if [[ -d "$_fasd_ret" ]]; then
cd -- "$_fasd_ret" # cd -- "$_fasd_ret"
elif [[ -n "$_fasd_ret" ]]; then # elif [[ -n "$_fasd_ret" ]]; then
print -- "$_fasd_ret" # print -- "$_fasd_ret"
fi # fi
} #}
# }}} # }}}