DragonFly BSD
DragonFly users List (threaded) for 2009-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

hammer sub command .csh completion


From: <mike-maillist@xxxxxxxxx>
Date: Thu, 22 Oct 2009 19:24:52 +0100

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/'





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