aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorJohn F. Mercer <john.f.mercer@gmail.com>2012-08-23 17:04:26 -0700
committerMathias Bynens <mathias@qiwi.be>2012-08-24 16:36:49 +0200
commit93e6bca4262e56ae7612fa752d9df29bd6968369 (patch)
treec8cd904b16c433e1bd42db51967e2ff9d7fb91ea /.aliases
parent46196ac8a75ee62b6dfce0ff58c7a9781f1e7a16 (diff)
downloaddotfiles-93e6bca4262e56ae7612fa752d9df29bd6968369.tar.gz
dotfiles-93e6bca4262e56ae7612fa752d9df29bd6968369.tar.bz2
dotfiles-93e6bca4262e56ae7612fa752d9df29bd6968369.zip
.aliases: Make `flush` kill `mDNSResponder` as well
Ref. #126 and http://support.apple.com/kb/HT5343.
Diffstat (limited to '.aliases')
-rw-r--r--.aliases2
1 files changed, 1 insertions, 1 deletions
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"