]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/fnm/fnm.plugin.zsh
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / fnm / fnm.plugin.zsh
1 if (( ! $+commands[fnm] )); then
2   return
3 fi
4
5 # If the completion file doesn't exist yet, we need to autoload it and
6 # bind it to `fnm`. Otherwise, compinit will have already done that.
7 if [[ ! -f "$ZSH_CACHE_DIR/completions/_fnm" ]]; then
8   typeset -g -A _comps
9   autoload -Uz _fnm
10   _comps[fnm]=_fnm
11 fi
12
13 fnm completions --shell=zsh >| "$ZSH_CACHE_DIR/completions/_fnm" &|