Created
February 21, 2015 23:41
-
-
Save lgalaz/c782c30f27af7a9cca68 to your computer and use it in GitHub Desktop.
Vagrant alias to start vm and up it if its halted.
This file contains 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
bash: | |
function coolness() { | |
ssh -q vagrant@127.0.0.1 -p 2222; | |
ret=$?; | |
if [ $ret -eq 255 ]; then | |
cd ~/Public/Homestead/; | |
vagrant up; | |
fi | |
ssh vagrant@127.0.0.1 -p 2222; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment