From f7a94bc6efd4a71c2235b8591dd1ec7d99aefc8f Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Thu, 31 May 2012 07:04:14 +0100 Subject: [PATCH] Added bash completion for global stop/restart now options. --- bash_completion/msm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bash_completion/msm b/bash_completion/msm index d30a8a5..1bddff9 100644 --- a/bash_completion/msm +++ b/bash_completion/msm @@ -10,10 +10,17 @@ _msm() { if [[ $COMP_CWORD -gt 1 ]]; then case "$base" in start) + # Do nothing there is no more ;; stop) + if [[ $COMP_CWORD == 2 ]]; then + options="now" + fi ;; restart) + if [[ $COMP_CWORD == 2 ]]; then + options="now" + fi ;; server) ;;