Thank you Holger, I don't know what this 3D-thing, is I'll learn it. I have, in the meanwhile, tested the attached file, that distinguishes also running, paused and halted VM's. For the moment this is completely sufficient for me. Maybe I'll add the completion "root" when I complete "qvm-run -u", since this is what I need for updating sudo-less minimal templates :)
I put the file it in /etc/bash_completion.d/ within dom0, and source it in .bashrc. Bernhard -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/b99595c0-2cda-a92e-b0b1-e36bd827c33e%40web.de. For more options, visit https://groups.google.com/d/optout.
#!/bin/bash _qvmall() { local cur VMS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" VMS=$(qvm-ls --raw-list) COMPREPLY=( $(compgen -W "${VMS}" ${cur}) ) return 0 } _qvmrunning() { local cur VMS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" VMS=$(qvm-ls --raw-data|grep -i running|cut -f1 -d"|") COMPREPLY=( $(compgen -W "${VMS}" ${cur}) ) return 0 } _qvmhalted() { local cur VMS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" VMS=$(qvm-ls --raw-data|grep -i halted|cut -f1 -d"|") COMPREPLY=( $(compgen -W "${VMS}" ${cur}) ) return 0 } _qvmpaused() { local cur VMS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" VMS=$(qvm-ls --raw-data|grep -i paused|cut -f1 -d"|") COMPREPLY=( $(compgen -W "${VMS}" ${cur}) ) return 0 } complete -F _qvmall qvm-appmenus complete -F _qvmall qvm-clone complete -F _qvmall qvm-firewall complete -F _qvmall qvm-move-to-vm complete -F _qvmall qvm-remove complete -F _qvmall qvm-start-gui complete -F _qvmpaused qvm-unpause complete -F _qvmall qvm-backup complete -F _qvmall qvm-copy-to-vm complete -F _qvmrunning qvm-pause complete -F _qvmall qvm-run complete -F _qvmall qvm-usb complete -F _qvmhall qvm-backup-restore complete -F _qvmall qvm-service complete -F _qvmrunning qvm-kill complete -F _qvmrunning qvm-shutdown complete -F _qvmall qvm-tags complete -F _qvmall qvm-check complete -F _qvmall qvm-features complete -F _qvmall qvm-prefs complete -F _qvmhalted qvm-start