Skip to content

Instantly share code, notes, and snippets.

@pastafari
Last active December 16, 2015 16:48
Show Gist options
  • Save pastafari/5465389 to your computer and use it in GitHub Desktop.
Save pastafari/5465389 to your computer and use it in GitHub Desktop.
Useful aliases while running Vagrant on Virtual Box
# Vagrant aliases
alias vssh="vagrant ssh"
alias vup="vagrant up"
alias vhalt="vagrant halt"
alias vreload="vagrant reload"
# VirtualBox aliases
alias runningvms="VBoxManage list runningvms"
alias vms="VBoxManage list vms"
function poweroffvm() { VBoxManage controlvm "$@" poweroff;}
@mayurdange
Copy link

I'm too lazy to type all that, I use:

alias vh='cd ~/sportech/infra &&vagrant halt'
alias vr='cd ~/sportech/infra &&vagrant reload --no-provision&& vagrant ssh'
alias vs='cd ~/sportech/infra &&vagrant ssh'
alias vu='cd ~/sportech/infra &&vagrant up --no-provision && vagrant ssh'

as mostly i use vagrant only for the project, I added cd into the project dir..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment