gryf / vboxmanage-bash-completion Goto Github PK
View Code? Open in Web Editor NEWVBoxManage bash completion
Home Page: https://github.org/gryf/vboxmanage-bash-completion
License: Other
VBoxManage bash completion
Home Page: https://github.org/gryf/vboxmanage-bash-completion
License: Other
Has anybody experienced sourcing VBoxManage closes the shell? ๐ค
I get the following error
Unknown application - bash
Hi,
the default shell for MacOS is Bash 3. compopt does not exist in Bash 3 so completion fails on the occasions compopt is called. it would be great to have a fix.
Thank you for creating this !!
I personally use an alias vb
, instead of VBoxManage
as it is much quicker to type.
Adding the autocompletion for vb
can be quickly accomplished via:
complete -o default -F _VBoxManage vb
but someone else might prefer to have this working in a different alias. Hence my recommendation.
The script can support virtually any alias, without hardcoding, by extending the autocompletion to cover the script's name:
complete -o default -F _VBoxManage $(basename "${BASH_SOURCE[0]}")
This way, when people download the "VirtualBoxManage" autocompletion script, they can rename it to whatever they want and the autocompletion will work for the command with that name.
For instance, if your file is downloaded and saved as "myvb", the autocompletion will be available when myvb
is typed in bash.
VBoxManage internalcommands createrawvmdk -filename rawtest.vmdk -rawdisk...
is very useful
Hi,
I have the following problem with vBoxManage snapshot foo delete <TAB>
$ vbm snapshot debian take 'first tryage'
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Snapshot taken. UUID: 64f93dfc-5331-41b6-968d-fa1157ff4ac6
$ vbm snapshot debian take 'second tryage'
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Snapshot taken. UUID: 4044ac15-6025-4eba-9d7d-fe6ed1e82e04
$ vbm snapshot debian delete <TAB>
\ econd tryage fir\ t tryage
$ vbm snapshot debian delete t<TAB>
$ vbm snapshot debian delete fir\ t tryage
Oracle VM VirtualBox Command Line Management Interface Version 5.2.26
(C) 2005-2019 Oracle Corporation
All rights reserved.
Usage:
... etc....
I guess my sed is not of the correct type/version.
Hi,
thanks a lot for this completion script - big help.
I noticed that (at least on Ubuntu 16.04 with VirtualBox 5.0.18) there are no completions for VBoxManage modifymedium
.
Would you happen to know how to fix that?
Kind regards,
Schlomo
great project. a request:
You could consider, if it is not very complicated, incorporate commands to create virtual disks for data storage (vdi), format them (ext4, ntfs, etc), mount and unmount them in linux. This is something that is only partially in the VBoxManager documentation and there is little information about these procedures
thanks in advanced
Hi,
I run macos. There, default sed is a bsd sed that doesn't understand \s \n and the other \ sequences. sed is used everywhere, I can install gnu sed easily with some package manager, but then I have to edit the script and change every sed command so it uses that installed sed command. This is complex and must be done for each version.
I'll add a PR to let user easily choose the sed command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.