mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Removed fasd stuff.
This commit is contained in:
parent
62611bb01e
commit
159a142967
1 changed files with 16 additions and 16 deletions
|
@ -64,22 +64,22 @@ _plugin completions 'zsh-users/zsh-completions' "$_checkout_latest_version"
|
|||
|
||||
# fasd {{{
|
||||
|
||||
unalias j
|
||||
j() {
|
||||
local _fasd_ret
|
||||
_fasd_ret="$(
|
||||
# -l: list all paths in the database (without scores)
|
||||
# -d: list only directories
|
||||
# -R: in the reverse order
|
||||
fasd -l -d -R |
|
||||
fzf --height=40% --layout=reverse --tiebreak=index --query="$*"
|
||||
)"
|
||||
if [[ -d "$_fasd_ret" ]]; then
|
||||
cd -- "$_fasd_ret"
|
||||
elif [[ -n "$_fasd_ret" ]]; then
|
||||
print -- "$_fasd_ret"
|
||||
fi
|
||||
}
|
||||
#unalias j
|
||||
#j() {
|
||||
# local _fasd_ret
|
||||
# _fasd_ret="$(
|
||||
# # -l: list all paths in the database (without scores)
|
||||
# # -d: list only directories
|
||||
# # -R: in the reverse order
|
||||
# fasd -l -d -R |
|
||||
# fzf --height=40% --layout=reverse --tiebreak=index --query="$*"
|
||||
# )"
|
||||
# if [[ -d "$_fasd_ret" ]]; then
|
||||
# cd -- "$_fasd_ret"
|
||||
# elif [[ -n "$_fasd_ret" ]]; then
|
||||
# print -- "$_fasd_ret"
|
||||
# fi
|
||||
#}
|
||||
|
||||
# }}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue