1 # Bash completion script for "omd"
8 cur="${COMP_WORDS[COMP_CWORD]}"
9 prev="${COMP_WORDS[COMP_CWORD-1]}"
10 opts="create rm cp mv update start stop restart reload status sites versions version"
12 # Fill in the sites for these commands
13 if [[ $prev =~ start|stop|restart|reload|status|rm|mv|cp|update ]]; then
17 if [[ $prev =~ omd|start|stop|restart|reload|status|rm|mv|cp|update ]] ; then
18 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )