diff options
author | Oliver Kiddle <opk@zsh.org> | 2023-11-17 18:13:41 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2023-11-17 18:13:41 +0100 |
commit | 6306dcfaa52237fbaa76eafe7bc396e68eda66ca (patch) | |
tree | 818c8bbcf932431e4d28bc5f14fc05cdd616e7b7 /Completion/Unix/Command/_ifconfig | |
parent | ddfc81a2b81e19c13f60bfff30f28ed520df8f57 (diff) | |
download | zsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.tar.gz zsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.tar.xz zsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.zip |
52303: updates to completions for macOS 13
Diffstat (limited to 'Completion/Unix/Command/_ifconfig')
-rw-r--r-- | Completion/Unix/Command/_ifconfig | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_ifconfig b/Completion/Unix/Command/_ifconfig index 4e1f25e2e..86ec46038 100644 --- a/Completion/Unix/Command/_ifconfig +++ b/Completion/Unix/Command/_ifconfig @@ -13,15 +13,16 @@ updownlist=( case $OSTYPE in darwin*) - args=( -s $updownlist ) + args=( -s $updownlist + '-X+[list interfaces whose names match regular expression]:regex:_net_interfaces' + ) opts=( $alias $debug delete dest_address ipdst nsellength {,-}trailers {,-}link{0,1,2} ) - ;; + ;| freebsd*|dragonfly*) args=( -s $updownlist - '(-a -j -f -l -G -g -u -d -m -L 1 *)-C[list interface cloners]' '(-C)-f+[control the output format]: :_values -s, -S\: format "addr[adjust inet address display]\:format [numeric]\:(default fqdn host numeric)" "ether[adjust ethernet address display]\:format [colon]\:(colon dash dotted default)" @@ -30,10 +31,7 @@ case $OSTYPE in '(-C)-G+[exclude members of the specified group]:group' '(-C)-g+[limit output to members of the specified group]:group' '(-C)-k[print keying information for the interface]' - '(-l -C)-m[list supported media]' '(-C)-n[disable automatic loading of network interface drivers]' - '(-l -C)-L[show address lifetime as time offset]' - '(-C)-v[get more verbose status for an interface]' ) listopts=( active caps chan countries mac mesh regdomain roam txparam txpower @@ -47,6 +45,14 @@ case $OSTYPE in roam roam:rssi roam:rate roaming ) ;| + freebsd*|darwin*|dragonfly*) + args+=( + '(-a -j -f -l -G -g -u -d -m -L 1 *)-C[list interface cloners]' + '(-l -C)-m[list supported media]' + '(-l -C)-L[show address lifetime as time offset]' + '(-C)-v[get more verbose status for an interface]' + ) + ;| freebsd<14->.*) args+=( '(-C)-j+[perform actions inside jail]:jail:_jails' ) ;; |