diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2019-05-09 14:40:34 +0200 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-06-19 13:42:12 +0200 |
commit | 898f972d534480b35f5a74aa41d0e9abc94f302f (patch) | |
tree | 307db8cb90feadb5cf49544501acdcd093b42cf9 /Makefile.am | |
parent | a98fcdf7e7afba4c6ea9237ff97e58d5b36d85cf (diff) |
Introduce bash completion
With this change one can get list of domains on the command line:
$ virt-viewer -c qemu:///system <TAB><TAB>
dom1 dom2 ... domN
The list of domains is fetched using virsh, hence the dependency
on libvirt-client recorded in the spec file. I think it's fair
to assume that Linux hosts with virt-viewer will have virsh
available too. If they don't, nothing breaks and no error message
is printed.
The completer script is inspired by libvirt.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 4cfdd59..9dda6a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ NULL = ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = icons src man po data tests +SUBDIRS = bash-completion icons src man po data tests AM_DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb EXTRA_DIST = \ |