From 08b32cb15a1df17334d698b2e3f9e8852946864d Mon Sep 17 00:00:00 2001 From: taradiddles Date: Sun, 1 Apr 2018 18:47:26 +0300 Subject: [PATCH] renamed --- ...cmds-bash-autocomplete.sh => qvm-cmds-bash-completion.sh} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename code/productivity/{qvm-cmds-bash-autocomplete.sh => qvm-cmds-bash-completion.sh} (85%) diff --git a/code/productivity/qvm-cmds-bash-autocomplete.sh b/code/productivity/qvm-cmds-bash-completion.sh similarity index 85% rename from code/productivity/qvm-cmds-bash-autocomplete.sh rename to code/productivity/qvm-cmds-bash-completion.sh index 211a241..4b8b712 100644 --- a/code/productivity/qvm-cmds-bash-autocomplete.sh +++ b/code/productivity/qvm-cmds-bash-completion.sh @@ -1,6 +1,7 @@ # qvm-* commands bash auto completion -# Copy this file to /etc/bash_completion.d/qvm.sh +# copy this file to /etc/bash_completion.d/qvm.sh +# make sure 'bash-completion' is installed (sudo qubes-dom0-update bash-completion) # credit: https://www.mail-archive.com/qubes-users@googlegroups.com/msg20088.html @@ -12,7 +13,7 @@ _qvm() cur="${COMP_WORDS[COMP_CWORD]}" case ${state} in running|halted|paused) - vms=$(qvm-ls --raw-data | grep -i "${state}" | cut -f1 -d"|") + vms=$(qvm-ls --raw-data | grep -i "|${state}|" | cut -f1 -d"|") ;; "") vms=$(qvm-ls --raw-list)