diff options
-rw-r--r-- | .zsh/completions/_net-profile | 3 | ||||
-rw-r--r-- | .zshrc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.zsh/completions/_net-profile b/.zsh/completions/_net-profile new file mode 100644 index 0000000..2c51335 --- /dev/null +++ b/.zsh/completions/_net-profile @@ -0,0 +1,3 @@ +#compdef net-profile + +_arguments "1: :($(ls -1 ~/.net_profiles | cut -d '.' -f 1))" @@ -1,8 +1,10 @@ zstyle ':completion:*' completer _complete _ignored zstyle :compinstall filename '~/.zshrc' +fpath=(~/.zsh/completions $fpath) autoload -Uz compinit promptinit compinit promptinit +zstyle ':completion:*' menu select=2 zstyle ':completion:*' completer _complete _ignored HISTFILE=~/.zshistory HISTSIZE=1000 |