Created
June 5, 2013 14:55
-
-
Save telekineticyeti/5714487 to your computer and use it in GitHub Desktop.
A list of my common bash shell aliases. Place in ~/.bash_aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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