Skip to content

Instantly share code, notes, and snippets.

@ricardobarantini
Created April 8, 2016 15:04
Show Gist options
  • Save ricardobarantini/a18311c77915c8648665ea95c4766d8a to your computer and use it in GitHub Desktop.
Save ricardobarantini/a18311c77915c8648665ea95c4766d8a to your computer and use it in GitHub Desktop.
Homestead VM aliases
# 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