myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit 0c128d64e00bbb862e3fa065a8607609b4024728
parent 117ab48d62dbc419f0c073c0c289ff3f8af84af6
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon,  1 Oct 2012 01:43:13 +0200

switch from z to fasd

Diffstat:
zsh/zshrc | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/zsh/zshrc b/zsh/zshrc @@ -2,7 +2,7 @@ . ~/.zsh/perso . ~/.zsh/alias -. ~/apps/z/z.sh +# . ~/apps/z/z.sh zstyle ':completion:*' completer _expand _complete _ignored _match _correct _approximate _prefix zstyle ':completion:*' max-errors 2 @@ -172,7 +172,7 @@ function precmd () { export LASTDIR=$newdir - _z --add "$(pwd -P)" + # _z --add "$(pwd -P)" if [[ "$TERM" == "screen" ]]; then echo -ne "\ek_\e\\" elif [[ "$TERM" == "rxvt-unicode" ]]; then @@ -200,6 +200,12 @@ mln () { mv "$@" && ln -s ${@:$#} } #TODO bindkey '^Q' push-line +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 >| "$fasd_cache" +fi +source "$fasd_cache" +unset fasd_cache # http://www.solipsys.co.uk/new/BashInitialisationFiles.html?HN0811 # Change to most recently used directory: