Added bash completion for global stop/restart now options.

This commit is contained in:
Marcus Whybrow 2012-05-31 07:04:14 +01:00
parent 2028c06a05
commit f7a94bc6ef

View File

@ -10,10 +10,17 @@ _msm() {
if [[ $COMP_CWORD -gt 1 ]]; then if [[ $COMP_CWORD -gt 1 ]]; then
case "$base" in case "$base" in
start) start)
# Do nothing there is no more
;; ;;
stop) stop)
if [[ $COMP_CWORD == 2 ]]; then
options="now"
fi
;; ;;
restart) restart)
if [[ $COMP_CWORD == 2 ]]; then
options="now"
fi
;; ;;
server) server)
;; ;;