diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completions/_off | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/completions/_off b/etc/completions/_off new file mode 100644 index 0000000..afe95fc --- /dev/null +++ b/etc/completions/_off @@ -0,0 +1,21 @@ +#compdef off + +typeset -a arguments +typeset expl + +arguments=( + '--force[shutdown a server]' + '-n[simulate]' + '-r[reboot]' + ':place:_off_places' +) + +function _off_places { + if [[ ! -d ~/packages/places ]] { + return 1 + } + _wanted place expl place \ + compadd $(ls -1 ~/packages/places/etc) +} + +_arguments -s $arguments |