From c3ca141231b0fdb60631a418b2e887ff039ebb69 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 3 May 2018 12:36:09 +0200 Subject: 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 --- share/bash-completion/container | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;; -- cgit v1.2.3