From 384ab53ad950bbdec12bdc86fd2878afaa843233 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 10 Nov 2018 18:13:15 -0500 Subject: add completions for the sv* commands --- zsh/local-completions/hush/_sv | 10 ++++++++++ zshrc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 zsh/local-completions/hush/_sv 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 {{{ -- cgit v1.2.3-54-g00ecf