Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-12-2004, 11:36 AM   #1
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Rep: Reputation: 15
Changing bash profile doesn't affect new terminal windows...

I'm trying to change a few things in my profile for bash, so I updated the following file...


...from within KDE. I added the following line to display the current working directory...

PS1="["'$PWD'"] "

...and launched a new bash window, but the changes do not seem to have any affect. Although if I hit Ctrl-Alt+F2 and swith to a full screen bash window login, the changes take affect. I'm assuming that once KDE loads it must be caching the bash profile settings and uses them each time I launch a new terminal window from KDE. Is there any way to override this? I would rather use bash shell windows on the KDE desktop and not go to full screen mode using Ctrl+Alt+F2.

Old 10-12-2004, 11:41 AM   #2
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Did you try putting the change into



Also, the PS1 you have defined will not be "added", but rather will be the only thing that displays on your prompt. Is that what you intended? Probably, but when you wrote "added" it made me think you thought you were going to see what you have now plus this.

I find that I have to exit all terminals and open up a new one to see changes like this.
Old 10-12-2004, 11:46 AM   #3
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
I don't think I have a bashrc file, and I'm not at home so I can't even check.

And yes, the only thing I intend to be displayed is the prompt containing the current working directory, That's all I need.

Old 10-12-2004, 11:51 AM   #4
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
When I had that problem I had to completely logout and login again.
Old 10-12-2004, 12:29 PM   #5
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
bash_profile is executed when the bash instance is a login shell while bashrc is started when it is non-login shell. KDE probably starts the terms as non-login shell.

The shells started from menus seem to be inconsistent in whether they are login or non-login shells. I got both types in my menu....

If you are missing ~/.bashrc you can always create one yourself. Same format as profile.
Old 10-12-2004, 12:51 PM   #6
Registered: Oct 2004
Location: New York City
Distribution: Mandrake 10.1 CE
Posts: 35

Original Poster
Rep: Reputation: 15
Cool, I'll give it a shot when I get home.

thanks to all,



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
Linux under Windows - to use USB devices, not affect / reboot Windows, etc? pianoplayer88key General 2 12-01-2005 08:17 PM
Can Windows Viruses Affect My Linux Partitions? ixus_123 Linux - Security 11 12-19-2004 11:02 PM
Terminal profile Phaethar Red Hat 1 11-21-2003 01:04 AM
Changing Text Size/Terminal Width in Bash TastyWheat Linux - General 2 11-03-2003 12:24 AM
Can Windows affect a dhcp cable modem? gluesniffmonkey Linux - Newbie 3 12-29-2002 09:07 PM > Forums > Linux Forums > Linux - Newbie

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

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