summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh/completions/_net-profile3
-rw-r--r--.zshrc2
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))"
diff --git a/.zshrc b/.zshrc
index 5ad64a7..1233994 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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