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

Re: Where is Bash Prompt Set??



On Tue, Feb 09, 2010 at 11:22:03PM -0600, Stan Hoeppner wrote:

> Maybe you misunderstood my example shell prompt code.  Or maybe I'm just not
> understanding what you're saying.  Here, copy/pasted from a Putty terminal
> session.  Not a doc-file, but demonstrates your example nonetheless.
> 
> [11:14:14][stan@greer]/etc/postfix$
> [11:16:09][root@greer]/etc/postfix$
> 
> There.  No color.  Root does has a different prompt.  The prompt says "root"
> instead of "user".  What about your concern am I missing?

I think the point is that it's a lot easier to overlook "root" buried
somewhere in the middle of a long prompt than it is to overlook a "#"
right next to the cursor.

Cheers,
Tom

-- 
Real Users never use the Help key.

Attachment: signature.asc
Description: Digital signature


Reply to: