Only init fasd if it is installed.

This commit is contained in:
Kyle West 2012-03-22 16:15:42 -04:00
parent f2529aca6e
commit 1aa9e5b875

View File

@ -1,13 +1,16 @@
# Initialize fasd (https://github.com/clvv/fasd) # only init if installed.
eval "$(fasd --init posix-alias zsh-hook)" 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 # jump to recently used items
alias a='fasd -a' # any alias a='fasd -a' # any
alias s='fasd -s' # show / search / select alias s='fasd -s' # show / search / select
alias d='fasd -d' # directory 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