diff --git a/src/_virtualbox b/src/_virtualbox index 028dc7f..4d50e6e 100644 --- a/src/_virtualbox +++ b/src/_virtualbox @@ -21,6 +21,14 @@ _vboxmachines() { done } +# Get natnetworks +_vboxnatnets() { + vboxmanage list natnetworks | awk -F: '/NetworkName:/{print $2}'| while read natnet; do + _wanted 'natnet' expl 'natnet' compadd $natnet + done +} + + # Roughly guess command options _vboxcommandoptions() { cmd="$1"