Configure KDE Terminal Working Directory

Alex Schuster wonko at wonkology.org
Tue Jun 26 09:14:10 BST 2012


Zaki Akhmad writes:

> I want to configure my KDE terminal
> 
> The default appearance of terminal with
> /home/za/Video/youtube/music/mraz working directory is like this:
> za at zara:/home/za/Video/youtube/music/mraz
> 
> If my working directory is too deep, the terminal appearance won't be
> convenience again, so I'd like to only show the last directory
> za at zara:/mraz
> 
> How to do that?

If you're a bash user, the prompt is defined by the $PS1 environment
variable, which is set somewhere in /etc/profile, /etc/bash/bashrc or in
your user's ~/.bashrc. Yours is probably set to \u@\h:\w. Change it to
\u@\h:\W to get the last directory only. See the bash man page, section
PROMPTING, for an explanation of possible values. Mine is set to
\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] , which gives
colored output (user at host in green, directory in blue).

	Wonko
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list