2012-03-23 04:15:42 +08:00
|
|
|
# only init if installed.
|
2012-04-02 05:48:23 +08:00
|
|
|
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
|
|
|
|