add bash completion

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-07-22 09:31:23 +02:00
parent ccb184215c
commit 5c6035f227
4 changed files with 19 additions and 1 deletions

8
debian/proxmox-apt-repo.bc vendored Normal file
View File

@ -0,0 +1,8 @@
# proxmox-apt-repo completion
# see http://tiswww.case.edu/php/chet/bash/FAQ
# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
# this modifies global var, but I found no better way
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
complete -C 'proxmox-apt-repo bashcomplete' proxmox-apt-repo

View File

@ -0,0 +1,2 @@
debian/proxmox-offline-mirror.bc proxmox-offline-mirror
debian/proxmox-apt-repo.bc proxmox-apt-repo

8
debian/proxmox-offline-mirror.bc vendored Normal file
View File

@ -0,0 +1,8 @@
# proxmox-offline-mirror bash completion
# see http://tiswww.case.edu/php/chet/bash/FAQ
# and __ltrim_colon_completions() in /usr/share/bash-completion/bash_completion
# this modifies global var, but I found no better way
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
complete -C 'proxmox-offline-mirror bashcomplete' proxmox-offline-mirror

2
debian/rules vendored
View File

@ -2,7 +2,7 @@
export BUILD_MODE=release-deb
%:
dh $@ --buildsystem cargo
dh $@ --buildsystem cargo --with=bash-completion
override_dh_auto_test:
# skip for now to avoid additional debug builds - no tests anyway