Spending time in PS1, was Re: [RFC/PATCH] shortstatus v1

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

 



Hi,

On Tue, 10 Feb 2009, Sitaram Chamarty wrote:

> I wonder if I could ask people opinions on a trick I pulled, which is 
> basically maintain a state of the value of $SECONDS each time the user 
> is shown a bash prompt.  If the value is the same as last time (meaning 
> he hit enter twice in a row very quickly), it runs the extra stuff.

As you know, I am a big fan of consistency.  In this light, I do not like 
it when I am shown something at times, and at other times not.

Besides, I agree with Junio that even a single second spent to calculate 
PS1 is too much.  I use my command line extensively (some claim I live in 
it).  An slow PS1 would drive me to madness.

Ciao,
Dscho
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux