mirror of
https://github.com/wahyd4/dotfiles.git
synced 2026-08-13 14:56:25 +10:00
.aliases: Add lscleanup alias that cleans up LaunchServices
This removes duplicates in the “Open With” menu.
This commit is contained in:
@@ -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 \/.*\""
|
||||
|
||||
Reference in New Issue
Block a user