Quickly stopping all running vagrant instances
Problem Statement When running several vagrant instances, it can be slightly time consuming to have to individually stop all of them.
Solution The snippet below is a bash script that can efficiently stop all running vagrant instances under the user running the script.
Note: This script works well on both Linux/Unix and MacOS operating systems.
#!/bin/bash -e ### 1\. Script globally checks for all vagrant instances running under the user executing the script.