LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where could I modify the konsole terminal setting? (https://www.linuxquestions.org/questions/linux-newbie-8/where-could-i-modify-the-konsole-terminal-setting-872807/)

casualzone 04-04-2011 12:53 AM

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...

Aquarius_Girl 04-04-2011 01:45 AM

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

casualzone 04-04-2011 03:11 AM

cant find it in my .cshrc

there are many setting in the .cshrc by admin...

Aquarius_Girl 04-04-2011 03:17 AM

Quote:

Originally Posted by casualzone (Post 4313098)
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.

Aquarius_Girl 04-04-2011 03:19 AM

and have a look here, this may help: http://kb.mit.edu/confluence/pages/v...pageId=3907171

casualzone 04-04-2011 07:30 PM

still cant find the "set prompt" in the .cshrc file

Can i set the new one in the .cshrc to overwrite the setting?

Aquarius_Girl 04-04-2011 11:39 PM

Quote:

Originally Posted by casualzone (Post 4314022)
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.


All times are GMT -5. The time now is 04:55 PM.