Skip to content

Commit

Permalink
.aliases: Add lscleanup alias that cleans up LaunchServices
Browse files Browse the repository at this point in the history
This removes duplicates in the “Open With” menu.
  • Loading branch information
porada authored and mathiasbynens committed Jul 29, 2012
1 parent 8a79072 commit a149de5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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 \/.*\""
Expand Down

0 comments on commit a149de5

Please sign in to comment.