LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10: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 10:39 PM. Reason: The problem was solved.
 
Old 08-05-2008, 11:02 PM   #2
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
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-05-2008 at 11:06 PM.
 
Old 08-06-2008, 08: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



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 09:05 PM
sourcing a file bdiddy84 Linux - Newbie 1 04-17-2007 09:07 PM
bash login sourcing .alias ned737 SUSE / openSUSE 2 11-17-2005 02:03 AM
Sourcing .bashrc shifty_eyes Linux - Newbie 3 09-25-2005 09:43 PM
.bashrc error upon sourcing psiakr3w Linux - General 2 08-07-2004 12:44 AM

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

All times are GMT -5. The time now is 08:50 AM.

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