Skip to content

Instantly share code, notes, and snippets.

@rufhausen
Created January 13, 2015 18:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rufhausen/cf4fc6969dadcadf6755 to your computer and use it in GitHub Desktop.
Save rufhausen/cf4fc6969dadcadf6755 to your computer and use it in GitHub Desktop.
Laravel Homestead's serve function (bash) for oh-my-zsh. Just put it in your .zshrc file after installing Homestead if you are using oh-my-zsh.
function serve() {
if [[ -n $1 && -n $2 ]]
then
sudo dos2unix /vagrant/scripts/serve.sh
sudo bash /vagrant/scripts/serve.sh $1 $2
else
echo "Error: missing required parameters."
echo "Usage: "
echo " serve domain path"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment