Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Add several more entries to ifconfig completion



This list is not exhaustive by any means, and it'd take me more time
than I have right now to make it perfect (some of the entries in
listopts only work after the word "list"). That said, better is better
than perfect :-)

I'd rather have over-completion than under-completion.

commit 811db4a10653478652c314c302e7b8fbb911e3f1
Author: Eitan Adler <lists@xxxxxxxxxxxxxx>
Date:   Mon Apr 30 08:54:37 2018 +0000

    Add several more entries to ifconfig

diff --git a/Completion/Unix/Command/_ifconfig
b/Completion/Unix/Command/_ifconfig
index 0c81bce10..c5b5af8d4 100644
--- a/Completion/Unix/Command/_ifconfig
+++ b/Completion/Unix/Command/_ifconfig
@@ -25,11 +25,16 @@ case $OSTYPE in
       '(-l -C)-m[list supported media]'
       '(-l -C)-L[show address lifetime as time offset]'
     )
-    opts=( $alias $debug
+    listopts=(
+        active caps chan countries mac mesh regdomain roam txparam txpower
+        scan sta wme
+    )
+    opts=( $alias $debug $listopts
       anycast lladdr media {,-}mediaopt {,delete}tunnel create destroy
       {,un}plumb vlan {,-}vlandev metric prefixlen range phase ssid muid
       stationname channel authmode {,-}powersave powersavesleep wepmode
-      {,-}wep {,-}nwkey add delete ether {,-}link{0,1,2}
+      {,-}wep {,-}nwkey add delete ether {,-}link{0,1,2} list wme wmm
+      roam roam:rssi roam:rate roaming
     )
   ;;
   irix5*) opts=( $debug ) ;;


-- 
Eitan Adler



Messages sorted by: Reverse Date, Date, Thread, Author