dotfiles/.config/shell/rc.d/enable-fasd-hook.sh

13 lines
551 B
Bash
Raw Normal View History

2019-06-05 14:44:15 +00:00
#!/bin/sh
2019-07-24 05:33:28 +00:00
# more usage instructions at https://github.com/clvv/fasd
eval "$(fasd --init zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install)"
alias a='fasd -a' # any
alias s='fasd -si' # show / search / select
# alias d='fasd -d' # directory
# alias f='fasd -f' # file
# alias sd='fasd -sid' # interactive directory selection
# alias sf='fasd -sif' # interactive file selection
alias z='fasd_cd -d' # cd, same functionality as j in autojump
alias zz='fasd_cd -d -i' # cd with interactive selection