dotar/zsh/fasd.zsh

17 lines
449 B
Bash
Raw Normal View History

2012-03-23 04:15:42 +08:00
# only init if installed.
if [[ -f $HOME/.fasd ]]; then
2012-03-23 04:15:42 +08:00
# Initialize fasd (https://github.com/clvv/fasd)
eval "$(fasd --init posix-alias zsh-hook)"
2012-03-22 03:33:34 +08:00
2012-03-23 04:15:42 +08:00
# aliases
2012-03-22 03:33:34 +08:00
2012-03-23 04:15:42 +08:00
# jump to recently used items
alias a='fasd -a' # any
alias s='fasd -s' # 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 v='f -e vim' # quick opening files with vim
fi
2012-03-22 03:33:34 +08:00