Skip to content

Instantly share code, notes, and snippets.

@geta6
Created August 28, 2013 05:58
Show Gist options
  • Save geta6/6362560 to your computer and use it in GitHub Desktop.
Save geta6/6362560 to your computer and use it in GitHub Desktop.
installer for osx
#!/bin/zsh
[[ ! -s `which brew` ]] && echo 'brew not installed' && exit 1
brew install nginx
[[ ! -d ~/Library/LaunchAgents ]] && mkdir ~/Library/LaunchAgents
ln -sfv /usr/local/opt/nginx/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
cd ~/Library/LaunchAgents
launchctl load homebrew.mxcl.nginx.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment