diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-11-12 10:32:41 +0100 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-11-12 10:32:41 +0100 |
commit | d5fec6b512c1d588a5a3dee27226b870a3fe3363 (patch) | |
tree | 8a96c76ed0f65eab8da03085874d028e57e96465 /Completion/Linux/Command/_ethtool | |
parent | f6495ebae8f15a88312aa4e2ad7acc473927e6ad (diff) | |
download | zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.gz zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.xz zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.zip |
43816: various completion option updates
Diffstat (limited to 'Completion/Linux/Command/_ethtool')
-rw-r--r-- | Completion/Linux/Command/_ethtool | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Completion/Linux/Command/_ethtool b/Completion/Linux/Command/_ethtool index 84f2837a8..33b7681dc 100644 --- a/Completion/Linux/Command/_ethtool +++ b/Completion/Linux/Command/_ethtool @@ -106,6 +106,7 @@ if [[ -n $state ]]; then '(d)a[wake on ARP]' \ '(d)g[wake on MagicPacket(tm)]' \ '(d)s[enable SecureOn(tm) password for MagicPacket(tm)]' \ + '(d)f[wake on filter(s)]' \ '(p u m b a g s)d[disable (wake on nothing)]' ;; sopass) @@ -138,9 +139,6 @@ if [[ -n $state ]]; then flags) _message -e masks mask ;; - encoding) - _wanted encodings expl encoding compadd auto off rs baser - ;; context) _message -e contexts 'RSS context' ;; @@ -255,7 +253,7 @@ if [[ -n $state ]]; then hkey hfunc delete ;; -f|--flash) - if (( CURRENT = 4 )); then + if (( CURRENT == 4 )); then _files else _message -e regions region @@ -291,7 +289,11 @@ if [[ -n $state ]]; then {mgmt,irq,dma,filter,offload,mac,phy,ram,ap}{,-shared} ;; --set-fec) - _wanted options expl tunable compadd -F line - encoding + if (( CURRENT == 4 )); then + _wanted options expl tunable compadd - encoding + else + _wanted encodings expl encoding compadd -F line auto off rs baser + fi ;; esac ;; |