LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-28-2007, 05:21 PM   #1
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Rep: Reputation: 15
~/.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)
 
Old 04-28-2007, 05:52 PM   #2
hepburnenthorpe
Member
 
Registered: Jun 2006
Location: Sydney
Distribution: Gentoo + Debian
Posts: 132

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check that script is being sourced trek413 Linux - Software 1 11-02-2006 11:38 AM
.bash_profile and /etc/profile not sourced? FogSwimmer Ubuntu 7 10-05-2006 05:45 AM
zsh return 0 if script sourced not executed cs-cam Linux - General 2 08-12-2006 11:41 AM
.bashrc not being sourced shanenin Linux - Software 1 01-05-2005 10:07 PM
.bashrc not sourced koyi Slackware 4 08-02-2003 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration