From aa31561a4550b7eff06a8c490a679e7fcb89f491 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Sun, 12 Mar 2023 18:51:07 +0100 Subject: [PATCH] Updated registervm command. --- VBoxManage | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/VBoxManage b/VBoxManage index c29de38..999bc4e 100644 --- a/VBoxManage +++ b/VBoxManage @@ -2275,6 +2275,14 @@ _VBoxManage() { COMPREPLY=( $(compgen -o plusdirs -f -X '!*.vbox' -- ${cur}) ) [[ ${#COMPREPLY[@]} = 1 && "${COMPREPLY[0]}" != *".vbox" ]] && \ COMPREPLY[0]="${COMPREPLY[0]}/" + else + if [[ $prev == "--passwordfile" ]]; then + COMPREPLY=( $(compgen -f -- ${cur}) ) + else + local items=( --passwordfile ) + _get_excluded_items "${items[@]}" + COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) + fi fi ;;