[Libvir] Bash completions for virsh

Richard W.M. Jones rjones at redhat.com
Fri Oct 26 08:17:50 UTC 2007

David Lutterkort wrote:
> The attached file provides tab completion for virsh. To use them, just
> source the file in bash; after that, typing 'virsh <TAB>' should do
> something sensible (if you are on KVM, you also need to have
> VIRSH_DEFAULT_CONNECT_URI set, otherwise virsh will complain when trying
> to gather various info during completion.
> Could this be added to the libvirt CVS in some appropriate place ? The
> RPM should probably install it in /etc/bash_completion.d/

Very cute, +1.


Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071026/93ffffc8/attachment-0001.bin>

More information about the libvir-list mailing list