LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (http://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   How do I change the bash prompt in SuSE 8.2 (http://www.linuxquestions.org/questions/linux-distributions-5/how-do-i-change-the-bash-prompt-in-suse-8-2-a-122279/)

Joey.Dale 12-03-2003 09:31 AM

How do I change the bash prompt in SuSE 8.2
 
Hi all,

When I log in (init3) I get the prompt
bash-2.05
if I cd somewhere, th prompt does not change ie:
linux:~ # cd /usr/
linux:/usr #
how do I make it do this? Thank You

jkobrien 12-03-2003 09:55 AM

Hi,

Put the following into ~/.bashrc

export PS1 = 'linux:\w # '

The \w is the working directory. There's other stuff you can put in too, \h is the host, \u is the user and so on. Not sure where the full list is, probably under "man bash".

John

Joey.Dale 12-03-2003 09:56 AM

thank you

JZL240I-U 12-08-2003 08:01 AM

http://www.dreaming.org/~giles/bashprompt/

I also recommend the search function of this site ;):

http://www.linuxquestions.org/questi...ghlight=prompt

or

http://www.linuxquestions.org/questi...der=descending

:D


All times are GMT -5. The time now is 06:38 PM.