nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] switches and smatch


From: Bakul Shah
Subject: Re: [Nmh-workers] switches and smatch
Date: Mon, 29 Jan 2018 08:31:02 -0800

May be the current -help option of most commands with some post processing is 
good enough?

Under zsh on FreeBSD I use, for example,
    compctl -K listifnets ifconfig
    listifnets() { set -A reply $(ifconfig -l) }
Now whenever I try autocompleting ifconfig’s argument, zsh runs the
listifnets command which sets variable reply to existing net interface
names and this is then used for auto completion. This is useful when
the list of words can change dynamically or to avoid cluttering up the
variable name space. When the word list doesn’t change you can use
compctl -k (lowercase k) and provide a fixed word list to it.

> On Jan 29, 2018, at 3:43 AM, Ralph Corderoy <address@hidden> wrote:
> 
> An option to dump an nmh program's options so a script can build upon
> them could be useful.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]