diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-10 18:13:15 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-10 18:14:42 -0500 |
commit | 384ab53ad950bbdec12bdc86fd2878afaa843233 (patch) | |
tree | 5c1a9e8eac7b1d6d92428756a70abe7acbb34403 | |
parent | 7347b5285ec3e8d6e5e36f51233c92c79f987e74 (diff) | |
download | conf-384ab53ad950bbdec12bdc86fd2878afaa843233.tar.gz conf-384ab53ad950bbdec12bdc86fd2878afaa843233.zip |
add completions for the sv* commands
-rw-r--r-- | zsh/local-completions/hush/_sv | 10 | ||||
-rw-r--r-- | zshrc | 2 |
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 @@ -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 {{{ |