Created
April 8, 2016 15:04
-
-
Save ricardobarantini/a18311c77915c8648665ea95c4766d8a to your computer and use it in GitHub Desktop.
Homestead VM aliases
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
# source | |
# https://murze.be/2016/01/some-laravel-homestead-tips/ | |
function vm() { | |
cd ~/Homestead | |
command="$1" | |
if [ "$command" = "edit" ]; then | |
subl ~/.homestead/Homestead.yaml | |
else | |
if [ -z "$command" ]; then | |
command="ssh" | |
fi | |
eval "vagrant ${command}" | |
fi | |
#switch back to directory where command was performed in | |
cd - | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment