Only init fasd if it is installed.
This commit is contained in:
parent
f2529aca6e
commit
1aa9e5b875
@ -1,3 +1,5 @@
|
|||||||
|
# only init if installed.
|
||||||
|
if [[ -d $HOME/.fasd ]]; then
|
||||||
# Initialize fasd (https://github.com/clvv/fasd)
|
# Initialize fasd (https://github.com/clvv/fasd)
|
||||||
eval "$(fasd --init posix-alias zsh-hook)"
|
eval "$(fasd --init posix-alias zsh-hook)"
|
||||||
|
|
||||||
@ -10,4 +12,5 @@ alias d='fasd -d' # directory
|
|||||||
alias f='fasd -f' # file
|
alias f='fasd -f' # file
|
||||||
alias z='fasd_cd -d' # cd, same functionality as j in autojump
|
alias z='fasd_cd -d' # cd, same functionality as j in autojump
|
||||||
alias v='f -e vim' # quick opening files with vim
|
alias v='f -e vim' # quick opening files with vim
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user