fasd.plugin.zsh 314 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
Alexander Berezovsky's avatar
Alexander Berezovsky committed
8
9
10
11
  alias v='f -e vim'
  alias o='a -e open'
fi