diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-05-06 12:02:01 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-05-06 12:02:01 +0200 |
commit | aca869f328fb2695be0bf04114d3007619f605fd (patch) | |
tree | c6f5e7630a714698153975a3ff6d783fb4ea79fc /contrib/zsh-completion | |
parent | 75b7a33a1275e9cdb7c0959f0edfef81ff2c8e43 (diff) | |
download | netctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.gz netctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.xz |
Add is-enabled subcommand to netctl
Diffstat (limited to 'contrib/zsh-completion')
-rw-r--r-- | contrib/zsh-completion | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/zsh-completion b/contrib/zsh-completion index 56c552d..8e88437 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|reenable) ]] && + [[ $words[1] = (start|stop|restart|switch-to|status|enable|disable|is-enabled|reenable) ]] && compadd "${(f)$(find -L /etc/netctl -maxdepth 1 -type f -not -name '.*' -not -name '*~' -not -name '*.conf' -not -name '*.service' -printf "%f\n")}" } @@ -30,6 +30,7 @@ _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' ) _describe "netctl commands" _commands |