From 6aa94ce10541eb3340d4a2d80343688751a0c669 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 23 May 2024 15:41:16 +0200 Subject: [PATCH] bash-completion: Run virsh/virt-admin in quiet mode In some cases (e.g. when virt-admin connects to the default URI) some info message is printed onto stdout (using vshPrintExtra()). This hurts user experience, just consider: virt-admin NOTE\:\ Connecting\ to\ default\ daemon.\ Specify\ daemon\ using\ -c\ \(e.g.\ virtqemud\:///system\) when no daemon is running. Suppress extra prints by passing '-q' in the bash-completion script. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- tools/bash-completion/vsh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bash-completion/vsh.in b/tools/bash-completion/vsh.in index 897f74cc08..5692788d63 100644 --- a/tools/bash-completion/vsh.in +++ b/tools/bash-completion/vsh.in @@ -30,7 +30,7 @@ _@command@_complete() c=$((++c)) done - CMDLINE=( ) + CMDLINE=( "-q" ) if [ -n "${RO}" ]; then CMDLINE+=("-r") fi