From 0e9735fd4af0cfa6253b8a56b712c21b618913c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 Jun 2016 08:06:53 +0200 Subject: Looking up container create scripts dynamically in container bash-completion. 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 1943133..123e5a4 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -73,7 +73,7 @@ _container() ;; -s|--script) - opts="debootstrap debconf default" + opts=$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; -- cgit v1.2.3