From 37e3261821b13e8f8283ef23bb68e2fe6668f659 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 3 Jan 2017 22:00:00 +0100 Subject: Adding bash-completion for container move command. Signed-off-by: Daniel Baumann --- share/bash-completion/container | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/share/bash-completion/container b/share/bash-completion/container index 99d342b..fd916d1 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -158,6 +158,26 @@ _container() esac ;; + move|mv) + case "${cur}" in + -*) + opts="-f --force -n --new -o --old" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + case "${prev}" in + -o|--old) + opts=$(container list -t -f shell) + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + esac + ;; + remove|rm) case "${cur}" in -*) -- cgit v1.2.3