zsh-workers
 help / color / mirror / code / Atom feed
* _iwlist: suggest known essids for essid
@ 2006-11-24  0:38 Jörg Sommer
  0 siblings, 0 replies; only message in thread
From: Jörg Sommer @ 2006-11-24  0:38 UTC (permalink / raw)
  To: zsh-workers

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)


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

only message in thread, other threads:[~2006-11-24 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24  0:38 _iwlist: suggest known essids for essid Jörg Sommer

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).