[UCLA-LUG] .bash_profile and .bashrc files

pape@ph.ucla.edu pape@ph.ucla.edu
Wed, 5 Apr 2000 10:33:07 -0700 (PDT)


> Yes, I do completely log out of my system and relogin but it still does 't work.
> Also, I put the line   alias ls="ls -a --color"  in the .bash_profile and .bashrc
> under my home directory and in the /etc/bashrc file. The way it works now is that,
> I need to type bash -login to pretend that this terminal is a login shell.
> Otherwise, the terminal from the toolbar icon in neither GNOME nor KDE won't
> execute my .bash_profile and .bashrc files.

What is the login shell for your user in /etc/passwd?  gnome-terminal
should invoke bash as an interactive shell, meaning that ~/.bashrc is
sourced.  If your login shell is set to /bin/sh for instance, bash will
not read .bashrc on invocation as an interactive shell.

The only way bash wouldn't source .bashrc is if you gave it the -norc
option.