PVE4 Command line tools like qmrestore <archive> filename cannot autocomplete

ebiss

Renowned Member
May 2, 2012
181
0
81
PVE4 Command line tools like qmrestore <archive> filename cannot autocomplete

pve4.png
Press <tab> the filename "vzdump-2008r2.vma.lzo" not autocomplete.


Code:
root@pve51131:~# pveversion -v
proxmox-ve: 4.1-26 (running kernel: 4.2.6-1-pve)
pve-manager: 4.0-66 (running version: 4.0-66/8ba0405d)
pve-kernel-4.2.6-1-pve: 4.2.6-26
pve-kernel-4.2.2-1-pve: 4.2.2-16
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-41
pve-firmware: 1.1-7
libpve-common-perl: 4.0-41
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-17
pve-container: 1.0-32
pve-firewall: 2.0-14
pve-ha-manager: 1.0-14
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve1
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
 
Last edited:
Just a little confuse, Is it the bash provides the autocomplete?
Thanks for your time :)
 
Yes and no, to say it a bit simple: respective to a entered command, bash makes a call back to the command requesting the possible completions, our API then returns a list of values which can be use for autocompletion.

For example the completion for the ha-manager is configured for bash complete like this:
Code:
cat /usr/share/bash-completion/completions/ha-manager
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!