fasd.plugin.zsh 326 Bytes
Newer Older
Alexander Berezovsky's avatar
Alexander Berezovsky committed
1
if [ $commands[fasd] ]; then # check if fasd is installed
2
  fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
3
4
5
6
7
  if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
    fasd --init auto >| "$fasd_cache"
  fi
  source "$fasd_cache"
  unset fasd_cache
8

9
  alias v="f -e $EDITOR"
10
  alias o='a -e open_command'
Alexander Berezovsky's avatar
Alexander Berezovsky committed
11
fi