Re: Bash & .bashrc
On 07 Mar 2001, ktb wrote:
> On Wed, Mar 07, 2001 at 04:40:25PM -0500, Colin Cashman wrote:
> > I have .bashrc set up to support color ls, but .bashrc isn't called when I log in.
> >
> > If I subsequently start a new shell, however, or 'source .bashrc' then the file is read and processed.
> >
> > What's the best way to handle this so it's done automagically upon logging in? Just throw "source .bashrc" onto the end of the
> > .bash_profile file?
> >
>
> I put the following in my .bash_profile
>
> if [ -f ~/.bashrc ]; then
> source ~/.bashrc
> fi
>
> hth,
> kent
Is there any reason to use ~/.bash_profile, etc, rather than
/etc/profile, if you are the only user on the system?
Anthony
--
Anthony Campbell - running Gnu/Debian Linux (Windows-free zone)
For electronic books, skeptical essays, and over 120 book reviews, go to:
http://www.cix.co.uk/~acampbell/
When I use a word ... it means just what I choose it to mean - neither
more nor less. [Lewis Carroll]
Reply to: