Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Add several more entries to ifconfig completion
- X-seq: zsh-workers 42732
- From: Eitan Adler <lists@xxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Add several more entries to ifconfig completion
- Date: Sun, 29 Apr 2018 20:06:08 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:from:date:message-id:subject:to; bh=SUvZwEK1ssgPjJuKDKSUdDghdwGV0zpVikjb4sllepg=; b=ifStrxhNGw+U4oU5YzOZBqlyhOF67/gVhK/o8rbtN9y6K3mLM4n7ggeUapLzOAMjpf X1QSkVnup7L8JkgFk3VDE8t6PHd6gKC35/dr0a7p7AE02KNd7wHXnonowZSxmbAAAKZI VN+SuUqq28LaLIB//AJ/bDbIKkh79p2+qReaw=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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