Only init fasd if it is installed.
This commit is contained in:
parent
f2529aca6e
commit
1aa9e5b875
23
zsh/fasd.zsh
23
zsh/fasd.zsh
@ -1,13 +1,16 @@
|
||||
# Initialize fasd (https://github.com/clvv/fasd)
|
||||
eval "$(fasd --init posix-alias zsh-hook)"
|
||||
# only init if installed.
|
||||
if [[ -d $HOME/.fasd ]]; then
|
||||
# Initialize fasd (https://github.com/clvv/fasd)
|
||||
eval "$(fasd --init posix-alias zsh-hook)"
|
||||
|
||||
# aliases
|
||||
# aliases
|
||||
|
||||
# jump to recently used items
|
||||
alias a='fasd -a' # any
|
||||
alias s='fasd -s' # show / search / select
|
||||
alias d='fasd -d' # directory
|
||||
alias f='fasd -f' # file
|
||||
alias z='fasd_cd -d' # cd, same functionality as j in autojump
|
||||
alias v='f -e vim' # quick opening files with vim
|
||||
# jump to recently used items
|
||||
alias a='fasd -a' # any
|
||||
alias s='fasd -s' # show / search / select
|
||||
alias d='fasd -d' # directory
|
||||
alias f='fasd -f' # file
|
||||
alias z='fasd_cd -d' # cd, same functionality as j in autojump
|
||||
alias v='f -e vim' # quick opening files with vim
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user