From: phunehehe on
On Apr 12, 4:24 pm, William Hunt <w...(a)prv8.net> wrote:
> On Sun, 11 Apr 2010, phunehehe wrote:
> > Do you feel the long full path annoying when working with deeply
> > nested folders? I see somebody have only the current folder name only
> > (as opposed to the whole full path), but I don't know how to config
> > konsole like that. Some help please?
> > Thanks
>
> simple answer: what Henrik says.
>
> or, if you want to know what and how,
> read man bash, the section "PROMPTING", which tells
> how to put together a prompt, and a list of codes you
> can use.  Also a quick look at references to PS1.
>
> system-wide config is in /etc/profile
>
> Myself I like to color code prompts for different users.
> I use yellow on red for root, green on black for user account.
>
> root: export PS1='\[\033[41;1;33m\]:\w\$\[\033[0m\] '
> user: export PS1='\[\033[1;32m\]\h\w\$\[\033[0m\] '
>
> HTH
> --
> William Hunt, Portland Oregon USA

Yeah thanks William, I didn't know it's all documented in `man bash`
From: William Hunt on
On Tue, 13 Apr 2010, phunehehe wrote:
> On Apr 12, 4:24 pm, William Hunt <w...(a)prv8.net> wrote:
>> On Sun, 11 Apr 2010, phunehehe wrote:
>>> Do you feel the long full path annoying when working with deeply
[...]
>> simple answer: what Henrik says.
>> or, if you want to know what and how,
>> read man bash, the section "PROMPTING", which tells
[...]

> Yeah thanks William, I didn't know it's all documented in `man bash`


RTFM. The man is your friend :*)


--
William Hunt, Portland Oregon USA