summaryrefslogtreecommitdiffstats
path: root/contrib/bash-completion
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2015-01-06 19:31:39 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2015-01-12 22:08:40 +0100
commit0cc69f13c2355831e8f07962c072c09ca35fd5f3 (patch)
tree68bfc12809da42dc51b59a27b9c3eb694f748106 /contrib/bash-completion
parentf9a86cbf053a91a387499615bc6930548a51a463 (diff)
downloadnetctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.gz
netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.xz
Add edit 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 0e5804f..4f73fab 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 is-enabled reenable" -- "$cur") )
+ COMPREPLY=( $(compgen -W "--help --version list store restore stop-all start stop restart switch-to status enable disable reenable is-enabled edit" -- "$cur") )
;;
2)
- [[ ${COMP_WORDS[COMP_CWORD-1]} = @(start|stop|restart|switch-to|status|enable|disable|is-enabled|reenable) ]] &&
+ [[ ${COMP_WORDS[COMP_CWORD-1]} = @(start|stop|restart|switch-to|status|enable|disable|reenable|is-enabled|edit) ]] &&
mapfile -t COMPREPLY < <(IFS=$'\n'; compgen -W "$(_netctl_profiles)" -- "$cur")
;;
esac