Overview
This post will be for me to keep track of customizations to my .bashrc file for easy reference.
The rc stands for “run commands”.
.bash_aliases
To keep things modular, I am going to to use the .bash_aliases file. This file will contain the aliases, but be referenced in the .bashrc file.
Add the following block to the .bashrc file.
# User-specific aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Now, add in any aliases that might be useful.
echo 'alias ll="ls -lash"' >> ~/.bash_aliases
When this is done, either log out and log back in, or just source the file.
source ~/.bashrc
Leave a Reply