mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge 04ad6c36d8 into 291e96dcd0
This commit is contained in:
commit
25660700bc
2 changed files with 39 additions and 0 deletions
10
plugins/forever/README
Normal file
10
plugins/forever/README
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Forever
|
||||
|
||||
----
|
||||
|
||||
### Maintainer: [Rolf Koenders](http://www.rolfkoenders.nl)
|
||||
|
||||
This plugin provides some autocompletion for the Node tool [Forever](https://github.com/nodejitsu/forever)
|
||||
|
||||
### Todo
|
||||
I was thinking of adding some aliases and make the autocompletion a bit more smart.
|
||||
29
plugins/forever/_forever
Normal file
29
plugins/forever/_forever
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#compdef forever
|
||||
#autoload
|
||||
|
||||
# forever zsh completion
|
||||
|
||||
_forever() {
|
||||
|
||||
local -a commands
|
||||
commands=(
|
||||
'start:Start SCRIPT as a daemon'
|
||||
'stop:Stop the daemon SCRIPT'
|
||||
'stopall:Stop all the running forever scripts'
|
||||
'restart:Restart the daemon SCRIPT'
|
||||
'restartall:Restart all the running forever scripts'
|
||||
'list:List all running forever scripts'
|
||||
'logs:Lists log files for all forever processes'
|
||||
'logs:<script|index> Tails the logs for specified script'
|
||||
'config:Lists all forever user configuration'
|
||||
'cleanlogs:[CAREFUL] Deletes all historical forever log files'
|
||||
)
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
_describe -t commands 'commands' commands
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
_forever
|
||||
Loading…
Add table
Add a link
Reference in a new issue