commit daf88164e21a73cb71fdf154c50a260947ead1f6
parent d0f380ab2799ebe848be55a949605c54723edaa2
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 13 May 2020 20:29:03 +0200
vbox: updated completions
Former-commit-id: 0748701961728d21f29a7858dcd0100f8b2a43f0
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/shell/zsh-completions-mine/_vbox b/shell/zsh-completions-mine/_vbox
@@ -9,11 +9,13 @@ _vbox() {
arguments=(
'start:start a VM'
'stop:stop a VM'
- 'list:list known VMs'
+ 'ls:list known VMs'
'info:get information about a VM'
'running:list currently running VMs'
'share:share a local folder'
+ 'unshare:unshare a local folder'
'sharetmp:temporarily share a local folder'
+ 'shared:list shared folders for a VM'
)
local context state line expl
local -A opt_args
@@ -31,7 +33,12 @@ _vbox() {
:machine:_vboxmachines \
':name: :'
;;
- start|stop|info)
+ unshare)
+ _arguments \
+ ':hostpath:_files -/' \
+ :machine:_vboxmachines
+ ;;
+ start|stop|info|shared)
_arguments \
:machine:_vboxmachines
;;