LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2011, 01:53 AM   #1
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Rep: Reputation: 15
where could I modify the konsole terminal setting?


where could I modify the konsole terminal setting?

I would like change my default setting in the terminal.

my current terminal konsole is as below
usrname:machinename[line]: current_path :

I would like to shorten it because the current_path is too long and i find it quite messy...
 
Old 04-04-2011, 02:45 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
You want to modify the prompt so that it doesn't show the path?
If yes, then look out for the environment variable named PS1:

Open .bashrc which is a hidden file located in the home directory.
Look out for the variable PS1 there.
On mine it is like PS1="\e[1;37m[\t \d]\n\w \e[m"

\w means the current working directory. Delete it and save the file.

For more info hit out Google with keywords: bash prompt customization

Last edited by TheIndependentAquarius; 04-04-2011 at 02:48 AM.
 
Old 04-04-2011, 04:11 AM   #3
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
cant find it in my .cshrc

there are many setting in the .cshrc by admin...
 
Old 04-04-2011, 04:17 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by casualzone View Post
cant find it in my .cshrc
You are not using bash?

Anyway, find set prompt there, and find:
%~ or %d %c or %. in it and remove it.

I am not very sure if this is correct, but you can have a try.
 
Old 04-04-2011, 04:19 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
and have a look here, this may help: http://kb.mit.edu/confluence/pages/v...pageId=3907171
 
Old 04-04-2011, 08:30 PM   #6
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
still cant find the "set prompt" in the .cshrc file

Can i set the new one in the .cshrc to overwrite the setting?
 
Old 04-05-2011, 12:39 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by casualzone View Post
still cant find the "set prompt" in the .cshrc file

Can i set the new one in the .cshrc to overwrite the setting?
Nevermind, there was no PSI variable in my .bashrc too. I set it up myself. So yes you can.
 
  


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 terminal ngogketrao2 Linux - Newbie 2 04-28-2007 06:11 AM
konsole terminal -need help! Jorine Programming 0 12-22-2004 09:46 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 04:59 AM
looking for a terminal emulator Konsole SiQDiZ Linux - Software 3 06-12-2004 11:34 AM
How to modify the defaut terminal setting? Xiangbuilder Linux - General 2 08-27-2003 07:19 AM


All times are GMT -5. The time now is 01:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration