]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/fasd/fasd.plugin.zsh
6538d097eb17a0b2bc707b57ab6a258b04596e16
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / fasd / fasd.plugin.zsh
1 # check if fasd is installed
2 if (( ! ${+commands[fasd]} )); then
3   return
4 fi
5
6 fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
7 if [[ "$commands[fasd]" -nt "$fasd_cache" || ! -s "$fasd_cache" ]]; then
8   fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install \
9     zsh-wcomp zsh-wcomp-install >| "$fasd_cache"
10 fi
11 source "$fasd_cache"
12 unset fasd_cache
13
14 alias v='f -e "$EDITOR"'
15 alias o='a -e xdg-open'
16 alias j='zz'