Created
January 13, 2015 18:01
-
-
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.
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
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