Parent directory

fasd.plugin.zsh

415 bytes
 1# check if fasd is installed
 2if (( ! ${+commands[fasd]} )); then
 3  return
 4fi
 5
 6fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
 7if [[ "$commands[fasd]" -nt "$fasd_cache" || ! -s "$fasd_cache" ]]; then
 8  fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install \
 9    zsh-wcomp zsh-wcomp-install >| "$fasd_cache"
10fi
11source "$fasd_cache"
12unset fasd_cache
13
14alias v='f -e "$EDITOR"'
15alias o='a -e xdg-open'
16alias j='zz'