Skip to content

Instantly share code, notes, and snippets.

@kenchan0130
Created January 6, 2017 10:05
Show Gist options
  • Save kenchan0130/7b35e6f1b8abf25d25ab34ab7b72946c to your computer and use it in GitHub Desktop.
Save kenchan0130/7b35e6f1b8abf25d25ab34ab7b72946c to your computer and use it in GitHub Desktop.
#!/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