Skip to content

Instantly share code, notes, and snippets.

@zetc0de
Created February 11, 2020 13:09
Show Gist options
  • Save zetc0de/ab3997809417676b2477c4a139fdf000 to your computer and use it in GitHub Desktop.
Save zetc0de/ab3997809417676b2477c4a139fdf000 to your computer and use it in GitHub Desktop.
Simple Vagrant runner, just for lazy user =)
#!/bin/bash
cm=$1
if [[ $cm == 'start' ]]; then
cd ~/Vagrant/labs &&
vagrant up &&
vagrant ssh
elif [[ $cm == 'stop' ]]; then
cd ~/Vagrant/labs &&
vagrant halt
else
echo "Usage : labs start | stop"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment