Add function to list natnetworks
This commit is contained in:
		
							parent
							
								
									f20a81f813
								
							
						
					
					
						commit
						c83b6a505b
					
				|  | @ -21,6 +21,14 @@ _vboxmachines() { | ||||||
| 	done | 	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 | # Roughly guess command options | ||||||
| _vboxcommandoptions() { | _vboxcommandoptions() { | ||||||
| 	cmd="$1" | 	cmd="$1" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue