From 93e6bca4262e56ae7612fa752d9df29bd6968369 Mon Sep 17 00:00:00 2001 From: "John F. Mercer" Date: Thu, 23 Aug 2012 17:04:26 -0700 Subject: .aliases: Make `flush` kill `mDNSResponder` as well Ref. #126 and http://support.apple.com/kb/HT5343. --- .aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index 080f472..f50e077 100644 --- a/.aliases +++ b/.aliases @@ -53,7 +53,7 @@ alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ alias whois="whois -h whois-servers.net" # Flush Directory Service cache -alias flush="dscacheutil -flushcache" +alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder" # Clean up LaunchServices to remove duplicates in the “Open With” menu alias lscleanup="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder" -- cgit v1.2.3