Re: [zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-10 Thread Boyd Adamson
On 10/10/2008, at 5:12 PM, Nathan Kroenert wrote: > On 10/10/08 05:06 PM, Boyd Adamson wrote: >> Alex Peng <[EMAIL PROTECTED]> writes: >>> Is it fun to have autocomplete in zpool or zfs command? >>> >>> For instance - >>> >>>"zfs cr 'Tab key' " will become "zfs create" >>>"zfs clone 'Tab k

Re: [zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-10 Thread Darren J Moffat
Tim Foster wrote: > On Thu, 2008-10-09 at 22:40 -0700, Alex Peng wrote: >> Is it fun to have autocomplete in zpool or zfs command? >> >> For instance - >> >> "zfs cr 'Tab key' " will become "zfs create" >> "zfs clone 'Tab key' " will show me the available snapshots >> "zfs set 'Tab key'

Re: [zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-10 Thread Tim Foster
On Thu, 2008-10-09 at 22:40 -0700, Alex Peng wrote: > Is it fun to have autocomplete in zpool or zfs command? > > For instance - > > "zfs cr 'Tab key' " will become "zfs create" > "zfs clone 'Tab key' " will show me the available snapshots > "zfs set 'Tab key' " will show me the avail

Re: [zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-09 Thread Nathan Kroenert
Hm - This caused me to ask the question: Who keeps the capabilities in sync? Is there a programmatic way we can have bash (or other shells) interrogate zpool and zfs to find out what it's capabilities are? I'm thinking something like having bash spawn a zfs command to see what options are avai

Re: [zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-09 Thread Boyd Adamson
Alex Peng <[EMAIL PROTECTED]> writes: > Is it fun to have autocomplete in zpool or zfs command? > > For instance - > > "zfs cr 'Tab key' " will become "zfs create" > "zfs clone 'Tab key' " will show me the available snapshots > "zfs set 'Tab key' " will show me the available properties,

[zfs-discuss] add autocomplete feature for zpool, zfs command

2008-10-09 Thread Alex Peng
Is it fun to have autocomplete in zpool or zfs command? For instance - "zfs cr 'Tab key' " will become "zfs create" "zfs clone 'Tab key' " will show me the available snapshots "zfs set 'Tab key' " will show me the available properties, then "zfs set com 'Tab key'" will become "zfs se