Last active
February 8, 2019 15:42
-
-
Save rasschaert/6931458 to your computer and use it in GitHub Desktop.
Some superhero-themed bash functions for making interaction with Vagrant more fun. Just place these in your ~/.bashrc
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
# Alternative to vagrant destroy | |
# Example usage: $> hulk smash -f vm1 | |
hulk() { | |
if [[ $1 == "smash" ]]; then | |
shift | |
vagrant destroy $@ | |
fi | |
} | |
# When you use caps, -f is implied | |
# Example usage: $> HULK SMASH | |
HULK() { | |
if [[ $1 == "SMASH" ]]; then | |
shift | |
vagrant destroy -f $@ | |
fi | |
} | |
# Alternative to vagrant up | |
# Example usage: $> avengers assemble | |
avengers() { | |
if [[ $1 == "assemble" ]]; then | |
shift | |
vagrant up $@ | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment