Custom prompt and command aliases: Why I choose bash.bashrc

Working with any Linux distro means you’ll be spending a lot of your time at the prompt.  So, I’m sure you’ve made it your own over time.  Maybe added some colours, the time, important information like the current path, etc.  Plus, I’m sure you’ve created a few command aliases that make your life easier.  But, where do you put this stuff so it’s applied even when you quickly switch to a different user, say root, for some admin work?  When I first started out, I found that everyone seems to recommend putting these preferences in a different place.  Most people suggested /etc/profile while others staunchly advocated the ~/.bashrc file.  I’m going to tell you why I chose option #3, /etc/bash.bashrc. (more…)

Close Menu