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, then "zfs set 
> com 'Tab key'" will become "zfs set compression=",  another 'Tab key' here 
> would show me "on/off/lzjb/gzip/gzip-[1-9]"
>     ......
>
>
> Looks like a good RFE.

This would be entirely under the control of your shell. The zfs and
zpool commands have no control until after you press enter on the
command line.

Both bash and zsh have programmable completion that could be used to add
this (and I'd like to see it for these and other solaris specific
commands).

I'm sure ksh93 has something similar.

Boyd
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to