Skip to content

Instantly share code, notes, and snippets.

@telekineticyeti
Created June 5, 2013 14:55
Show Gist options
  • Save telekineticyeti/5714487 to your computer and use it in GitHub Desktop.
Save telekineticyeti/5714487 to your computer and use it in GitHub Desktop.
A list of my common bash shell aliases. Place in ~/.bash_aliases
# Clear term
alias cls='clear'
# Keep 1000 lines in .bash_history (default is 500)
export HISTSIZE=1000
export HISTFILESIZE=1000
#Stop bash from caching duplicate lines.
HISTCONTROL=ignoredups
# Disk free in human terms
alias df='df -h'
# List paths
alias path='echo -e ${PATH//:/\\n}'
# Upgrade/update system
alias upgrade='sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove'
# Install gems as root
alias sgem='sudo gem'
# Display a list of escaped codes for bash
alias chars="man bash | sed -n '/ASCII bell/,/end a sequence/p'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment