add shell aliases inspired by public dotfiles

- Thanks to https://github.com/mathiasbynens/dotfiles/blob/main/.aliases
  for inspiration
This commit is contained in:
MorganGeek 2020-07-02 20:59:21 +02:00
parent 8fda3e1d6f
commit 5cb3673335

View File

@ -113,11 +113,22 @@ alias ls='lsd'
alias tree='ls --almost-all --tree' alias tree='ls --almost-all --tree'
alias v=vi alias v=vi
alias x='extract' alias x='extract'
# Empty the Trash on all mounted volumes and the main HDD.
# Also, clear Apples System Logs to improve shell startup speed.
# Finally, clear download history from quarantine. https://mths.be/bum
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl; sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'"
# System info # System info
alias systeminfo='neofetch' alias systeminfo='neofetch'
alias monitoring='glances' alias monitoring='glances'
# System Utils
# Lock the screen (when going AFK)
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec ${SHELL} -l"
# Infrastructure # Infrastructure
alias awsls='awsls -profile default -region eu-west-1 --attributes tags aws_instance' alias awsls='awsls -profile default -region eu-west-1 --attributes tags aws_instance'