mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
Add Readme.md for supervisor.
Sync completion with original source.
This commit is contained in:
parent
74165aba4a
commit
39a4f9281b
2 changed files with 20 additions and 0 deletions
13
plugins/supervisor/README.md
Normal file
13
plugins/supervisor/README.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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).
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue