summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-10 18:13:15 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-10 18:14:42 -0500
commit384ab53ad950bbdec12bdc86fd2878afaa843233 (patch)
tree5c1a9e8eac7b1d6d92428756a70abe7acbb34403
parent7347b5285ec3e8d6e5e36f51233c92c79f987e74 (diff)
downloadconf-384ab53ad950bbdec12bdc86fd2878afaa843233.tar.gz
conf-384ab53ad950bbdec12bdc86fd2878afaa843233.zip
add completions for the sv* commands
-rw-r--r--zsh/local-completions/hush/_sv10
-rw-r--r--zshrc2
2 files changed, 11 insertions, 1 deletions
diff --git a/zsh/local-completions/hush/_sv b/zsh/local-completions/hush/_sv
new file mode 100644
index 0000000..8887bd6
--- /dev/null
+++ b/zsh/local-completions/hush/_sv
@@ -0,0 +1,10 @@
+#compdef svdn svget svkill svlog svnuke svre svst svstop svup
+
+local -a service_list
+local services=$(ls ~/.services/enabled/)
+service_list=(${(s:
+:)services})
+
+_describe 'commands' service_list
+
+# vim:ft=zsh
diff --git a/zshrc b/zshrc
index e2e8fb1..8e23aa0 100644
--- a/zshrc
+++ b/zshrc
@@ -26,7 +26,7 @@ esac # }}}
[ -f "$HOME/.sh/functions" ] && source $HOME/.sh/functions
# }}}
# completion {{{
-fpath=(~/.zsh/zsh-completions/src $fpath)
+fpath=(~/.zsh/local-completions/$(hostname) ~/.zsh/local-completions ~/.zsh/zsh-completions/src $fpath)
source ~/.zshcomplete
# }}}
# zsh configuration {{{