Skip to content

Instantly share code, notes, and snippets.

@jamesrwhite
Created October 13, 2012 13:09
Show Gist options
  • Save jamesrwhite/3884584 to your computer and use it in GitHub Desktop.
Save jamesrwhite/3884584 to your computer and use it in GitHub Desktop.
OSX nginx .bashrc/.zshrc function
function nginx() {
if test $# = 0 || test $1 = "start"
then
sudo nginx && echo "Success!"
# stop or reload
else
sudo nginx -s $1 && echo "Success!"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment