.aliases: Add lscleanup alias that cleans up LaunchServices

This removes duplicates in the “Open With” menu.
This commit is contained in:
porada
2012-07-29 21:20:03 +02:00
committed by Mathias Bynens
parent 8a79072feb
commit a149de5990
+3
View File
@@ -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 \/.*\""