fasd.plugin.zsh 419 B

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