aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorporada <porada@me.com>2012-07-29 19:17:58 +0300
committerMathias Bynens <mathias@qiwi.be>2012-07-29 21:20:03 +0200
commita149de5990108320273af25175bf8f8b99cdffbf (patch)
tree27f3db0bfc6b089c44acc64c9db37c762bbe30b7 /.aliases
parent8a79072feb638ab964f4ba6385551be4e7ae3edf (diff)
downloaddotfiles-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.
Diffstat (limited to '.aliases')
-rw-r--r--.aliases3
1 files changed, 3 insertions, 0 deletions
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 \/.*\""