diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-03 10:36:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-03 10:36:14 +0000 |
commit | c3ca141231b0fdb60631a418b2e887ff039ebb69 (patch) | |
tree | efbf2a44e05fa18aa27eb5f4c13faa6806b13dfe | |
parent | Adding quotes for consistency in bash-completion. (diff) | |
download | compute-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>
-rw-r--r-- | share/bash-completion/container | 2 |
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 ;; |