diff options
author | porada <porada@me.com> | 2012-07-29 19:17:58 +0300 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-07-29 21:20:03 +0200 |
commit | a149de5990108320273af25175bf8f8b99cdffbf (patch) | |
tree | 27f3db0bfc6b089c44acc64c9db37c762bbe30b7 | |
parent | 8a79072feb638ab964f4ba6385551be4e7ae3edf (diff) | |
download | dotfiles-a149de5990108320273af25175bf8f8b99cdffbf.tar.gz dotfiles-a149de5990108320273af25175bf8f8b99cdffbf.tar.bz2 dotfiles-a149de5990108320273af25175bf8f8b99cdffbf.zip |
.aliases: Add `lscleanup` alias that cleans up LaunchServices
This removes duplicates in the “Open With” menu.
-rw-r--r-- | .aliases | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -55,6 +55,9 @@ alias whois="whois -h whois-servers.net" # Flush Directory Service cache alias flush="dscacheutil -flushcache" +# 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" + # View HTTP traffic alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'" alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\"" |