Skip to content

Instantly share code, notes, and snippets.

@shkm shkm/.zshrc
Last active Aug 29, 2015

What would you like to do?
Suspend or halt all running Vagrant boxes.
# Suspend
vsall() {
vagrant global-status --prune | grep running | awk '{system("vagrant suspend "$1)}'
# Halt
vhall() {
vagrant global-status --prune | grep running | awk '{system("vagrant halt "$1)}'

This comment has been minimized.

Copy link
Owner Author

shkm commented Jul 26, 2015

Won't work too well if a box has "running" in the name ;-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.