Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-05-2005, 04:31 PM   #1
LQ Newbie
Registered: Jun 2003
Location: Germany
Posts: 9

Rep: Reputation: 0
Angry 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
Old 09-05-2005, 04:39 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
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.
Old 09-05-2005, 05:03 PM   #3
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
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:
PS1="[\u@\h \W]\\$ "
To activate it, run the following from your home directory:
$ . .bashrc
Your prompt should now look like
[user@host ~]$
Old 09-05-2005, 05:34 PM   #4
LQ Newbie
Registered: Jun 2003
Location: Germany
Posts: 9

Original Poster
Rep: Reputation: 0

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?


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
konsole bruse Linux - Newbie 2 05-15-2005 12:23 PM
konsole MrMullen Linux - General 2 03-11-2005 03:04 PM
Help with Konsole pablowablo Linux - Newbie 0 08-05-2004 10:37 PM
Konsole??? suselinux9 Linux - Software 0 04-11-2004 04:39 PM
konsole Henry Slackware 4 07-12-2003 10:24 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration