Created
February 15, 2018 10:47
-
-
Save marcusandre/c76fbbd00364de4236e0f83ebdb50785 to your computer and use it in GitHub Desktop.
Suspend all running vagrant machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ids=$(vagrant global-status | grep 'running' | cut -d ' ' -f 1 | xargs) | |
vagrant suspend $ids |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment