fasd.plugin.zsh 415 B

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