Skip to content

Instantly share code, notes, and snippets.

@rasschaert
Last active February 8, 2019 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasschaert/6931458 to your computer and use it in GitHub Desktop.
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
# 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