hammer sub command .csh completion

mike-maillist at nux.co.uk mike-maillist at nux.co.uk
Thu Oct 22 11:28:54 PDT 2009


Hi,

I found:

http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html

and made a hammer version for my .csh profile, thought it may save a few 
people some typing, i havent extended it as much as the zfs ones but i think 
may be a starting point - there is no 'hammer list' command so i suppose 
some awk/sed/grepping on mount could be done instead.

set hammer_cmd = (synctid bstats iostats history\
                 namekey1 namekey2 namekey32\
                 cleanup info snapshot prune prune-everything\
                 rebalance reblock\
                 pfs-status pfs-master pfs-slave  pfs-update pfs-upgrade 
pfs-downgrade pfs-destroy\
                 mirror-read mirror-read-stream mirror-write mirror-dump 
mirror-copy mirror-stream\
                 version version-upgrade expand)

complete hammer \
       'p/1/$hammer_cmd/'






More information about the Users mailing list