Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_iwlist: suggest known essids for essid
- X-seq: zsh-workers 23010
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: _iwlist: suggest known essids for essid
- Date: Fri, 24 Nov 2006 00:38:04 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxx>
Hi,
I think it would be really helpful if the completion function of iwconfig
could check the output of ‘iwlist $word[1] scanning’ for possible essids
and give them as completion. Something like this:
#v+
essid) _wanted -x names expl 'network name' compadd \
$(iwlist $words[1] scanning 2>/dev/null | sed -n '/ *ESSID:/ { s/.*:"//; s/"$//; p;}') \
off any on ;;
#v-
Bye, Jörg.
--
Mancher Hahn meint, dass die Sonne seinetwegen aufgeht.
(Theodor Fontane)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author