add fasd to zshrc

This commit is contained in:
Barak Michener 2013-05-09 15:23:33 -04:00
parent f40f06d597
commit dc9cb564f9

9
.zshrc
View file

@ -82,6 +82,15 @@ source ~/.zprofile
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
fasd_cache="$HOME/.fasd-init-zsh"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcompinstall >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
source ~/.zshenv
##############################################################