Created
January 6, 2017 10:05
-
-
Save kenchan0130/7b35e6f1b8abf25d25ab34ab7b72946c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
HOMEBREW_PREFIX="$(brew --prefix)" | |
cp $HOMEBREW_PREFIX/local/opt/dnsmasq/dnsmasq.conf.example $HOMEBREW_PREFIX/local/etc/dnsmasq.conf | |
cp $HOMEBREW_PREFIX/local/opt/dnsmasq/homebrew.mxcl.dnsmasq.plist $HOME/Library/LaunchAgents/. | |
launchctl bootstrap gui/$(id -u) $HOME/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment