diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-06 19:31:39 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-12 22:08:40 +0100 |
commit | 0cc69f13c2355831e8f07962c072c09ca35fd5f3 (patch) | |
tree | 68bfc12809da42dc51b59a27b9c3eb694f748106 /contrib/zsh-completion | |
parent | f9a86cbf053a91a387499615bc6930548a51a463 (diff) | |
download | netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.gz netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.xz |
Add edit subcommand to netctl
Diffstat (limited to 'contrib/zsh-completion')
-rw-r--r-- | contrib/zsh-completion | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/zsh-completion b/contrib/zsh-completion index 8e88437..05c506f 100644 --- a/contrib/zsh-completion +++ b/contrib/zsh-completion @@ -11,7 +11,7 @@ _wireless_interfaces() { (( $+function[_netctl_command] )) || _netctl_command() { - [[ $words[1] = (start|stop|restart|switch-to|status|enable|disable|is-enabled|reenable) ]] && + [[ $words[1] = (start|stop|restart|switch-to|status|enable|disable|reenable|is-enabled|edit) ]] && compadd "${(f)$(find -L /etc/netctl -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n")}" } @@ -30,8 +30,9 @@ _netctl_commands() { 'status:Show runtime status of a profile' 'enable:Enable the systemd unit for a profile' 'disable:Disable the systemd unit for a profile' - 'is-enabled:Check whether a profile is enabled' 'reenable:Reenable the systemd unit for a profile' + 'is-enabled:Check whether a profile is enabled' + 'edit:Edit a profile' ) _describe "netctl commands" _commands } |