From 1f14af4ef9a2e15886409d02d039b9ef2e6b43db Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 25 May 2016 22:30:22 -0500 Subject: [PATCH] add dns-restart function --- zsh/functions.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 4843658..0cc70d9 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -39,6 +39,11 @@ function ng-restart() { sudo launchctl start homebrew.mxcl.nginx } +function dns-restart() { + sudo launchctl stop homebrew.mxcl.dnsmasq + sudo launchctl start homebrew.mxcl.dnsmasq +} + # Start an HTTP server from a directory, optionally specifying the port function server() {