mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-10-31 23:35:32 +01:00
emptytrash alias
This commit is contained in:
parent
2865477558
commit
e7a07e2493
4
aliases
4
aliases
@ -16,6 +16,10 @@ alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup
|
||||
# Recursively delete `.DS_Store` files
|
||||
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
|
||||
|
||||
# Empty the Trash on all mounted volumes and the main HDD
|
||||
# Also, clear Apple’s System Logs to improve shell startup speed
|
||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||
|
||||
# Show/hide hidden files in Finder
|
||||
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool TRUE && killall Finder"
|
||||
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool FALSE && killall Finder"
|
Loading…
Reference in New Issue
Block a user