summaryrefslogtreecommitdiffstats
path: root/contrib/bash-completion
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2014-05-06 12:02:01 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2014-05-06 12:02:01 +0200
commitaca869f328fb2695be0bf04114d3007619f605fd (patch)
treec6f5e7630a714698153975a3ff6d783fb4ea79fc /contrib/bash-completion
parent75b7a33a1275e9cdb7c0959f0edfef81ff2c8e43 (diff)
downloadnetctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.gz
netctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.xz
Add is-enabled subcommand to netctl
Diffstat (limited to 'contrib/bash-completion')
-rw-r--r--contrib/bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/bash-completion b/contrib/bash-completion
index e4fd50a..0e5804f 100644
--- a/contrib/bash-completion
+++ b/contrib/bash-completion
@@ -23,10 +23,10 @@ _netctl()
case $COMP_CWORD in
1)
- COMPREPLY=( $(compgen -W "--help --version list store restore stop-all start stop restart switch-to status enable disable reenable" -- "$cur") )
+ COMPREPLY=( $(compgen -W "--help --version list store restore stop-all start stop restart switch-to status enable disable is-enabled reenable" -- "$cur") )
;;
2)
- [[ ${COMP_WORDS[COMP_CWORD-1]} = @(start|stop|restart|switch-to|status|enable|disable|reenable) ]] &&
+ [[ ${COMP_WORDS[COMP_CWORD-1]} = @(start|stop|restart|switch-to|status|enable|disable|is-enabled|reenable) ]] &&
mapfile -t COMPREPLY < <(IFS=$'\n'; compgen -W "$(_netctl_profiles)" -- "$cur")
;;
esac