diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-31 10:12:59 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-03-31 10:12:59 +0200 |
commit | 1bd2ecc17d74b6a8ffba97806cf90ef706d7411b (patch) | |
tree | 45907660ec9224697609d95d94c029dd108757af /Completion/Linux/Command/_ethtool | |
parent | b90c59e9fc75847bca3fa23c3b1a088f553aeb61 (diff) | |
download | zsh-1bd2ecc17d74b6a8ffba97806cf90ef706d7411b.tar.gz zsh-1bd2ecc17d74b6a8ffba97806cf90ef706d7411b.tar.xz zsh-1bd2ecc17d74b6a8ffba97806cf90ef706d7411b.zip |
42572: various completion option updates
Diffstat (limited to 'Completion/Linux/Command/_ethtool')
-rw-r--r-- | Completion/Linux/Command/_ethtool | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Completion/Linux/Command/_ethtool b/Completion/Linux/Command/_ethtool index 7c62fd7f7..52b8f0451 100644 --- a/Completion/Linux/Command/_ethtool +++ b/Completion/Linux/Command/_ethtool @@ -45,7 +45,10 @@ _arguments -C \ '--show-eee[show EEE settings]' \ '--set-eee[set EEE settings]' \ '--set-phy-tunable[set PHY tunable]' \ - '--get-phy-tunable[get PHY tunable]' && return + '--get-phy-tunable[get PHY tunable]' \ + '--reset[reset hardware components]' \ + '--show-fec[query device for forward error correction support]' \ + '--set-fec[configure forward error correction for device]' && return if [[ -n $state ]]; then case $words[CURRENT-1] in @@ -132,6 +135,12 @@ if [[ -n $state ]]; then hfunc) _message -e functions expl 'hash function' ;; + flags) + _message -e masks expl mask + ;; + encoding) + _wanted encodings expl encoding compadd auto off rs baser + ;; *) case $words[2] in -A|--pause) @@ -143,7 +152,7 @@ if [[ -n $state ]]; then -C|--coalesce) _wanted settings expl 'coalescing setting' compadd -F line -M 'r:|-=* r:|=*' - \ adaptive-{r,t}x {r,t}x-{usecs,frames}{,-irq,-high,-low} \ - stats-block-usecs pkt-rate-{low,high} sample-interval dmac + stats-block-usecs pkt-rate-{low,high} sample-interval ;; -G|--set-ring) _values -S ' ' -w 'ring parameter' \ @@ -268,6 +277,13 @@ if [[ -n $state ]]; then --get-phy-tunable) _wanted options expl tunable compadd downshift ;; + --reset) + _wanted components expl component compadd flags dedicated all \ + {mgmt,irq,dma,filter,offload,mac,phy,ram,ap}{,-shared} + ;; + --set-fec) + _wanted options expl tunable compadd -F line - encoding + ;; esac ;; esac |