Hope nobody minds if I branch off here.  I don't remember where the
previous thread started, but I'll try not to take it any further off
course for PS1 prompts. :)

On Tue, Oct 14, 2008 at 1:45 PM, Brandon Valentine
<[EMAIL PROTECTED]> wrote:
>
> On Tue, Oct 14, 2008 at 1:40 PM, Don Delp <[EMAIL PROTECTED]> wrote:
>> Reading the article, I found myself uneasy about #'s 1, 2, and 6.
>> They seem like easy sources of confusion and danger.  After testing,
>> #1 is the only one that I would really shy away from.  Also, notice
>> that the article has a root prompt in these examples?  I don't want to
>> play these shell games as root.
>
> This is probably a very good time to point out the power of
> customizing your shell prompt.  Check the manpage for your shell and
> you'll find about the awesome power of displaying the current
> directory right beside your shell prompt, which can definitely help
> eliminate mistakes.

That's a good point.  I usually like to use this:
PS1="[EMAIL PROTECTED]:\w\\$ "

Which looks like:
16:[EMAIL PROTECTED]:/etc/mail$

I find it useful to be able to see what time the last command
finished.  If something routine turns out to take a long time, I often
won't have thought to time it beforehand.  After current time, I get
hostname and path.

Any suggestions for a superior prompt?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to