Skip to content

Instantly share code, notes, and snippets.

@lbussy
Last active October 28, 2023 12:59
Show Gist options
  • Save lbussy/23c05d8dc8c24d8d8edddf1d381f1c8b to your computer and use it in GitHub Desktop.
Save lbussy/23c05d8dc8c24d8d8edddf1d381f1c8b to your computer and use it in GitHub Desktop.
Bash Aliases
# Add to ~/.bash_aliases
#
# Random helpers
alias cd..='cd ..' # Get rid of command not found error
alias diff='colordiff' # Colorize diff output
alias ping='ping -c 3' # Stop pings after three
# Do system update/upgrade and cleanup in one shot
alias update='sudo apt --fix-broken install -y && sudo apt update && sudo apt upgrade -y && sudo apt autoremove --purge -y && sudo apt clean && sudo apt autoclean -y'
alias upgrade='update'

Bash Aliases

These are aliases I use when I create a new Pi. Use the following commands to add it to your Pi:

curl https://gist.githubusercontent.com/lbussy/23c05d8dc8c24d8d8edddf1d381f1c8b/raw/cee00ee532753d971d64a107b9ca5d58d39f81c6/.bash_aliases -o ~/.bash_aliases
. ~/.bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment