I'd rather do all my customizations in a separate file.
Here is an example of a mybashrc file in your ~/bin directory:
http://ralf.beckesch.de/download/dev/bash/mybashrc
To call it, you would just add this to your .bashrc:
Code:
#if [ -e ~/bin/mybashrc ]; then
. ~/bin/mybashrc
fi
The reason why you would do that is that on large systems, on upgrades, the admin would push a new .bashrc file into your home directory, making you lose your customizations. Although ubuntu might not be doing that, I still think it's a good idea.
Besides, the existing .bashrc contains the following as a suggestion:
Code:
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi