mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-05 23:48:48 +08:00
Add function to list natnetworks
This commit is contained in:
1 parent
f20a81f813
commit
c83b6a505b
1 file changed
+8
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user