add fasd to zshrc
This commit is contained in:
parent
f40f06d597
commit
dc9cb564f9
1 changed files with 9 additions and 0 deletions
9
.zshrc
9
.zshrc
|
|
@ -82,6 +82,15 @@ source ~/.zprofile
|
|||
if [ -f ~/.bash_aliases ]; then
|
||||
source ~/.bash_aliases
|
||||
fi
|
||||
|
||||
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 zsh-wcomp zsh-wcompinstall >| "$fasd_cache"
|
||||
fi
|
||||
source "$fasd_cache"
|
||||
unset fasd_cache
|
||||
|
||||
|
||||
source ~/.zshenv
|
||||
|
||||
##############################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue