summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-03 10:36:09 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-03 10:36:14 +0000
commitc3ca141231b0fdb60631a418b2e887ff039ebb69 (patch)
treeefbf2a44e05fa18aa27eb5f4c13faa6806b13dfe /share/bash-completion
parentAdding quotes for consistency in bash-completion. (diff)
downloadcompute-tools-c3ca141231b0fdb60631a418b2e887ff039ebb69.tar.xz
compute-tools-c3ca141231b0fdb60631a418b2e887ff039ebb69.zip
Updating bash-completion to also complete on preseed files in the first level of subdirectories of /etc/container-tools/debconf.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/bash-completion/container2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 89d5a72..e117d16 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -64,7 +64,7 @@ _container()
create)
case "${prev}" in
-n|--name)
- opts="$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg 2>/dev/null | sed -e 's/.cfg$//g')"
+ opts="$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg */*.cfg 2>/dev/null | sed -e 's|.*/||g' -e 's|.cfg$||g')"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;