From dc9cb564f970f9a4ebf9071c903814588609f3d2 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 9 May 2013 15:23:33 -0400 Subject: [PATCH] add fasd to zshrc --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index f8fc2ee..a165395 100644 --- a/.zshrc +++ b/.zshrc @@ -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 ##############################################################