LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-05-2008, 11:30 PM   #1
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
[solved] Auto-sourcing


I've fixed the problem - I noticed I didn't have a ~/.bashrc file - so I copied /etc/profile to ~/.bashrc and it works perfectly now.

Quote:
I never had this...erm, "problem"...with Debian, but in Slackware, it seems that Konsole, is the only terminal emulator that seems to automagically "source" itself.

Whenever I start up XTerm, Yakuake or rxvt, the environment variables are all set properly (ie. my $PATH variable), but I'm still staring at a "bash-3.1$" prompt.

Is there any way I can tell these terminal emulators (most importantly rxvt - my terminal emulator of choice for absolutely no reason), to forcibly read /etc/profile at not use the default bash PS1? In short of someone telling me, I would be happy with just a URL, or a pointer as to where else I could look.


Last edited by indienick; 08-05-2008 at 11:39 PM. Reason: The problem was solved.
 
Old 08-06-2008, 12:02 AM   #2
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 256

Rep: Reputation: 121Reputation: 121
Oops. Posted in wrong tab.

But as long as I'm here...

Does not modifying PS1 in your ~/.bashrc accomplish what you want?

Last edited by saulgoode; 08-06-2008 at 12:06 AM.
 
Old 08-06-2008, 09:58 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Original Poster
Rep: Reputation: 65
Simply having a ~/.bashrc fixed it.

I issued:
Code:
$ cp /etc/profile ~/.bashrc
...and all works fine.
 
  


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
screen(1) not sourcing ~/.bash_profile introuble Linux - General 7 05-01-2012 10:05 PM
sourcing a file bdiddy84 Linux - Newbie 1 04-17-2007 10:07 PM
bash login sourcing .alias ned737 Suse/Novell 2 11-17-2005 03:03 AM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 10:43 PM
.bashrc error upon sourcing psiakr3w Linux - General 2 08-07-2004 01:44 AM


All times are GMT -5. The time now is 08:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration