summaryrefslogtreecommitdiffstats
path: root/Completion/Linux/Command/_ethtool
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-11-12 10:32:41 +0100
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-11-12 10:32:41 +0100
commitd5fec6b512c1d588a5a3dee27226b870a3fe3363 (patch)
tree8a96c76ed0f65eab8da03085874d028e57e96465 /Completion/Linux/Command/_ethtool
parent43817: update options in btrfs completion through to btrfs 4.17.1 (diff)
downloadzsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.gz
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.bz2
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.lz
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.xz
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.tar.zst
zsh-d5fec6b512c1d588a5a3dee27226b870a3fe3363.zip
43816: various completion option updates
Diffstat (limited to 'Completion/Linux/Command/_ethtool')
-rw-r--r--Completion/Linux/Command/_ethtool12
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
;;