mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Add function to list natnetworks
This commit is contained in:
@@ -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