Re: Configure KDE Terminal Working Directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux