LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-05-2005, 04:31 PM   #1
RaI
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
david_ross
Moderator
 
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
jayemef
Member
 
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:
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 ~]$
 
Old 09-05-2005, 05:34 PM   #4
RaI
LQ Newbie
 
Registered: Jun 2003
Location: Germany
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

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?
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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