2012-05-24 07:47:06 +08:00
|
|
|
if [ $commands[fasd] ]; then # check if fasd is installed
|
2015-06-03 04:43:38 +08:00
|
|
|
fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
|
2013-04-30 12:51:09 +08:00
|
|
|
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
|
|
|
|
fasd --init auto >| "$fasd_cache"
|
|
|
|
fi
|
|
|
|
source "$fasd_cache"
|
|
|
|
unset fasd_cache
|
2015-08-05 07:02:17 +08:00
|
|
|
|
2016-05-22 08:52:11 +08:00
|
|
|
alias v="f -e $EDITOR"
|
2015-08-05 07:02:17 +08:00
|
|
|
alias o='a -e open_command'
|
2012-05-24 07:47:06 +08:00
|
|
|
fi
|