zsh: Compile fasd and use as a function.
Alan Pearce alan@alanpearce.co.uk
Sun, 13 Apr 2014 09:50:36 +0100
2 files changed, 11 insertions(+), 0 deletions(-)
M hooks/post-up/zsh → hooks/post-up/zsh
@@ -39,4 +39,14 @@ for fp in $ZDOTDIR/functions/*(/); do zrecompile -p $fp $fp/* done +if [[ -s $commands[fasd] ]]; then + if [[ ! -d $ZDOTDIR/functions/fasd ]]; then + mkdir $ZDOTDIR/functions/fasd + fi + if [[ ! -h $ZDOTDIR/functions/fasd/fasd ]]; then + ln -s =fasd $ZDOTDIR/functions/fasd/fasd + fi + zrecompile -p $ZDOTDIR/functions/fasd $ZDOTDIR/functions/fasd/fasd +fi + [[ -f ~/.zsh/fasd-data ]] && mv ~/.zsh/fasd-data ~/.cache/zsh/fasd-data
M tag-zsh/config/zsh/zshrc → tag-zsh/config/zsh/zshrc
@@ -355,6 +355,7 @@ fi } _FASD_DATA="$HOME/.cache/zsh/fasd-data" +autoload -U fasd source ~/.cache/zsh/fasd-init-zsh if [[ $OSTYPE == freebsd* ]]; then