2012-07-15 05:26:24 +02:00
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
# ALIASES
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
alias ll='ls -la'
|
|
|
|
|
|
|
|
|
|
# Get into some servers FAST. Server, user & port are in .ssh/config
|
|
|
|
|
alias krlc='ssh kremalicious'
|
|
|
|
|
|
|
|
|
|
# Terminal needs more Espresso
|
|
|
|
|
alias esp="open -a Espresso"
|
|
|
|
|
|
|
|
|
|
# Update All The Things
|
2013-11-30 04:17:02 +01:00
|
|
|
|
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm update npm -g; npm update -g; gem update --system; gem update'
|
2012-07-15 05:26:24 +02:00
|
|
|
|
|
|
|
|
|
# Recursively delete `.DS_Store` files
|
|
|
|
|
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
|
|
|
|
|
|
2014-05-23 16:34:51 +02:00
|
|
|
|
# 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"
|
|
|
|
|
|
2012-07-15 05:26:24 +02:00
|
|
|
|
# Show/hide hidden files in Finder
|
2013-10-06 21:16:23 +02:00
|
|
|
|
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool TRUE && killall Finder"
|
|
|
|
|
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool FALSE && killall Finder"
|