summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-12 05:17:45 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-11-12 07:47:18 +0000
commit34e4fc8ba68adad5eebed751e2cd4975af8e9c0c (patch)
tree532bee53709840a0670775e70751d7403e43734c
parentAdding shortcuts for container commands to bash-completion as well. (diff)
downloadcompute-tools-34e4fc8ba68adad5eebed751e2cd4975af8e9c0c.tar.xz
compute-tools-34e4fc8ba68adad5eebed751e2cd4975af8e9c0c.zip
Ignoring symlinks as container commands in bash-completion.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-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 4bff91c..e49311a 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -249,7 +249,7 @@ _container()
;;
*)
- local commands=$(cd /usr/lib/container-tools/container 2>/dev/null && ls)
+ local commands=$(cd /usr/lib/container-tools/container 2>/dev/null && find * -type f -print)
COMPREPLY=( $(compgen -W "${commands}" -- ${cur}) )
return 0
;;