LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   ~/.bashrc not being sourced. (https://www.linuxquestions.org/questions/debian-26/%7E-bashrc-not-being-sourced-549802/)

hepburnenthorpe 04-28-2007 05:21 PM

~/.bashrc not being sourced.
 
My ~.bashrc isn't being sourced when opening an xterm. Ive tried adding...

Code:

if [ -f /etc/bash.bashrc ] ; then
  . /etc/bash.bashrc
fi

to /etc/profile. Ive also tried...

Code:

if [ -f ~/.bashrc ] ; then
  ~/.bashrc
fi

in ~/bash_profile.

What am I doing wrong?

PS: Seems changing Distro might be a little more difficult than Id'e assumed. Been using Gentoo for about 4 years. (A bit stuck in my ways)

hepburnenthorpe 04-28-2007 05:52 PM

Sorry, I figured it out when I also noticed my ~/.bashrc file wasn't being sourced via the console either. When I set up my account I didn't specify a shell. Debian defaults to /bin/sh not /bin/bash.

Sorted.


All times are GMT -5. The time now is 11:31 AM.