Homestead bash helper

One thing that annoys me about homestead is that I have to switch to the Homestead directory in order to use vagrant.

cd $HOMESTEAD_DIR;
vagrant up

Instead I made a little helper that takes out a step. Now I can just run

homestead up

Below is the script. I placed mine in ~/.bin/homestead

#!/bin/bash

ARGS="$@"
COMMAND="$1"
HOMESTEAD_DIR="$HOME/.homestead/Homestead"

cd $HOMESTEAD_DIR

case $COMMAND in

  edit)
    vi $HOME/.homestead/Homestead.yaml
  ;;

  down)
    vagrant halt
  ;;

  *)
    vagrant $ARGS
  ;;

esac