zsh-workers
 help / color / mirror / code / Atom feed
* Add several more entries to ifconfig completion
@ 2018-04-30  3:06 Eitan Adler
  0 siblings, 0 replies; only message in thread
From: Eitan Adler @ 2018-04-30  3:06 UTC (permalink / raw)
  To: Zsh hackers list

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@eitanadler.com>
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-30  3:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30  3:06 Add several more entries to ifconfig completion Eitan Adler

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).