LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2003, 02:07 AM   #1
sangjin
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
Question about bash prompt


Hi

I would like to ask a question about bash prompt.
I have included the following line in .bash_profile to
change my prompt.

PS1="\u@\h \@PWD] "

If I run the following command

source .bash_profile

I get what I want. But if I start a new terminal I still
get the old prompt defined in /etc/bashrc. I don't like
to recompile .bash_profile everytime I start a new terminal.
I could edit /etc/bashrc but I would like to allow users to
only edit .bash_profile to get what ever prompt they want.

I'm using Redhat Linux 9 and GNOME XDM.

Sincerely yours,
Sangjin Kim
sangjin89@hotmail.com
 
Old 07-30-2003, 03:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just put it in your own .bashrc instead.
 
Old 07-30-2003, 03:08 AM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
ones for original login, the other's for any additional terminals you start. Or something like that...I'm getting tired.
 
  


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
bash prompt subG Slackware 6 01-18-2006 05:43 PM
Curious bash prompt editing question. xconspirisist Linux - Software 3 11-19-2005 08:24 PM
help with bash prompt everythingand2 Linux - Newbie 7 12-06-2003 05:28 PM
Bash Prompt mandraketux Mandriva 2 11-28-2003 11:05 PM
Bash Prompt Question ghight *BSD 6 01-31-2003 01:30 PM

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

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