1
0
mirror of https://github.com/DazAh/dotfiles synced 2026-05-22 10:35:48 +01:00
Files
dotfiles/exact_dot_oh-my-zsh/exact_plugins/exact_fasd/fasd.plugin.zsh
T
2019-10-13 01:29:05 +01:00

13 lines
339 B
Bash

if [ $commands[fasd] ]; then # check if fasd is installed
fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init auto >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
alias v='f -e "$EDITOR"'
alias o='a -e xdg-open'
alias j='zz'
fi