Re: Problems with .bash_profile
Originally Posted by
MG&TL
Performing some alias tweaks to save me some time for common tasks in the terminal requires me to edit .bash_profile, which is under /home/.myusername. However, if I open it in gedit, e.g. sudo gedit .bash_profile it opens a blank gedit document. It can't seriously be telling me there is nothing in there?
Actually ~/.bash_profile is NOT the best place to put your personal aliases...
Better in ~/.bashrc
...and even better in ~/.bash_aliases if you have the following code in your ~/.bashrc
Code:
if [ -r ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Laptop: Dell Inspiron 8200 - Fedora 13 - Goddard
Desktop: Self-Built - [Ku, Lu, Xu, U]buntu - Lucid 10.04.3 (LTS)
Linux User: 498249 / Ubuntu User: 29241
Bookmarks