fasd.plugin.zsh 322 B

1234567891011
  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 auto >| "$fasd_cache"
  5. fi
  6. source "$fasd_cache"
  7. unset fasd_cache
  8. alias v='f -e vim'
  9. alias o='a -e open_command'
  10. fi