LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   konsole (https://www.linuxquestions.org/questions/linux-software-2/konsole-360505/)

RaI 09-05-2005 03:31 PM

konsole
 
How do I get konsole to show only the directory I am in and not the whole path? It gets annoying when the path is long. And my searches haven't brought me across an answer.
Perhaps useful data:
konsole version: 1.5
kde: 3.4.0 level "b"
Qt: 3.3.4

david_ross 09-05-2005 03:39 PM

I assume you mean when using bash?

Just set your prompt up such as:
PS1="\W> "

The bash man page has a list of the special characters that can be used in the "PROMPTING" section.

jayemef 09-05-2005 04:03 PM

And if you don't want to have to type this every time you open a new terminal, put it in your ~/.bashrc. I personally like the RedHat default PS1, so I use it in all my distros. So for example, you could add the following to your ~/.bashrc:
Code:

PS1="[\u@\h \W]\\$ "
To activate it, run the following from your home directory:
Code:

$ . .bashrc
Your prompt should now look like
Code:

[user@host ~]$

RaI 09-05-2005 04:34 PM

Thanks!
Now what is displayed on the title bar has changed too, but isn't the same as what I set for PS1. Is there a variable for the title bar?


All times are GMT -5. The time now is 03:08 PM.