From a149de5990108320273af25175bf8f8b99cdffbf Mon Sep 17 00:00:00 2001 From: porada Date: Sun, 29 Jul 2012 19:17:58 +0300 Subject: .aliases: Add `lscleanup` alias that cleans up LaunchServices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes duplicates in the “Open With” menu. --- .aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.aliases b/.aliases index c933cf6..80f075f 100644 --- a/.aliases +++ b/.aliases @@ -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 \/.*\"" -- cgit v1.2.3