From 94a1780ee0d020b8c949b11ffc3852b785270906 Mon Sep 17 00:00:00 2001 From: Rolf Koenders Date: Sat, 16 Aug 2014 17:59:23 +0200 Subject: [PATCH] Auto completion for some 'forever' commands --- plugins/forever/_forever | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/forever/_forever diff --git a/plugins/forever/_forever b/plugins/forever/_forever new file mode 100644 index 000000000..388d12162 --- /dev/null +++ b/plugins/forever/_forever @@ -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 :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