diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-10-19 17:35:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-19 17:35:13 +0200 |
commit | 66290a39c82647b3582cbf945ac4c3a08e3c854c (patch) | |
tree | 8b334a31e573eab90cee7ca7b6b864d6631be191 | |
parent | bd9cd052f156f606a8f9ccccfeacf3125d06fd91 (diff) | |
parent | 160a801bedc9663db5539d4f663d2c2dbdf6cdcc (diff) | |
download | zsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.tar.gz zsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.tar.bz2 zsh-66290a39c82647b3582cbf945ac4c3a08e3c854c.zip |
supervisor: add README and update completion (#8285)
-rw-r--r-- | plugins/supervisor/README.md | 12 | ||||
-rw-r--r-- | plugins/supervisor/_supervisorctl | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/plugins/supervisor/README.md b/plugins/supervisor/README.md new file mode 100644 index 000000000..1eacea6d3 --- /dev/null +++ b/plugins/supervisor/README.md @@ -0,0 +1,12 @@ +# supervisor plugin + +This plugin adds tab-completion for `supervisord`/`supervisorctl` in [Supervisor](http://supervisord.org/). +Supervisor is a client/server system that allows its users to monitor and control a number +of processes on UNIX-like operating systems. + +To use it, add `supervisor` to the plugins array in your zshrc file: +```zsh +plugins=(... supervisor) +``` + +These scripts are from [zshcompfunc4supervisor](https://bitbucket.org/hhatto/zshcompfunc4supervisor). diff --git a/plugins/supervisor/_supervisorctl b/plugins/supervisor/_supervisorctl index d159f20e0..9f576c0c0 100644 --- a/plugins/supervisor/_supervisorctl +++ b/plugins/supervisor/_supervisorctl @@ -112,6 +112,13 @@ _supervisorctl_start() { '*::supvervisor process:_get_supervisor_procs' } +(( $+functions[_supervisorctl_restart] )) || +_supervisorctl_restart() { + # TODO: add 'all' + _arguments -s \ + '*::supvervisor process:_get_supervisor_procs' +} + (( $+functions[_supervisorctl_status] )) || _supervisorctl_status() { _arguments \ |