dotar/zsh/fasd.zsh

19 lines
587 B
Bash
Raw Permalink Normal View History

#
2012-03-23 04:15:42 +08:00
# only init if installed.
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
eval "$(fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install)" >| "$fasd_cache"
2012-03-23 04:15:42 +08:00
fi
source "$fasd_cache"
unset fasd_cache
2012-03-22 03:33:34 +08:00
# jump to recently used items
alias a='fasd -a' # any
alias s='fasd -si' # show / search / select
alias d='fasd -d' # directory
alias f='fasd -f' # file
alias z='fasd_cd -d' # cd, same functionality as j in autojump
alias zz='fasd_cd -d -i' # interactive directory jump
2017-03-21 11:49:16 +08:00
alias v='f -e vim'