Author Topic: [Solved] change konsole prompt  (Read 475 times)

Offline kaykav

  • New Friend
  • *
  • Posts: 7
[Solved] change konsole prompt
« on: October 12, 2011, 11:45:44 AM »
Hi all
             I want to change the prompt,  (bash-4.1$), to:  \ host\working directory. So I made an entry into  .bashrc   export $PS1="\h\W" . Rebooted, to no avail.
                   Same prompt (bash-4.1$). I  had the prompt I want,2 days ago. I do not know what happened.  Non-theless. How do I get the new prompt?
                                        Thank you... ???
  I typed $PS1, not PS1.  I corrected my error    .I made the correct entry in .bashrc       export PS1="\u \W $"
                   All is well...         
« Last Edit: October 12, 2011, 01:37:55 PM by kaykav »

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: [Solved] change konsole prompt
« Reply #1 on: October 12, 2011, 01:43:20 PM »
So I made an entry into  .bashrc   export $PS1="\h\W" . Rebooted, to no avail.

you may want insert in .bashrc:
export PS1="\h\W"
without the $

AS