diff options
author | John F. Mercer <john.f.mercer@gmail.com> | 2012-08-23 17:04:26 -0700 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-08-24 16:36:49 +0200 |
commit | 93e6bca4262e56ae7612fa752d9df29bd6968369 (patch) | |
tree | c8cd904b16c433e1bd42db51967e2ff9d7fb91ea /.aliases | |
parent | 46196ac8a75ee62b6dfce0ff58c7a9781f1e7a16 (diff) | |
download | dotfiles-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-- | .aliases | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |