LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-12-2004, 10:36 AM   #1
SAFX
Member
 
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...

~/.bash_profile

...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.

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

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

~/.bashrc

instead?

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, 10:46 AM   #3
SAFX
Member
 
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.

SAFX
 
Old 10-12-2004, 10:51 AM   #4
darkleaf
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, 11:29 AM   #5
mirradric
Member
 
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, 11:51 AM   #6
SAFX
Member
 
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,

SAFX
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:42 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