Skip to content

Instantly share code, notes, and snippets.

@marcusandre
Created February 15, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusandre/c76fbbd00364de4236e0f83ebdb50785 to your computer and use it in GitHub Desktop.
Save marcusandre/c76fbbd00364de4236e0f83ebdb50785 to your computer and use it in GitHub Desktop.
Suspend all running vagrant machines
#!/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