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 |
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. |
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]\\$ " Code:
$ . .bashrc Code:
[user@host ~]$ |
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. |