Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-05 Thread Martin Kacerovsky
Hi, On Wed, Mar 05, 2003 at 01:00:42PM +0100, Ivar Alm wrote: > At 23:18 2003-03-04, Fabio Sirna wrote: > > Sorry for a "rtfm" question, but can I write this to a > separate file and "#include" it in some way in .bashrc? Of course you can, e.g. put it into ~/.colorbashrc and then put t

Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-05 Thread Ivar Alm
At 23:18 2003-03-04, Fabio Sirna wrote: I do some change on the bash script that I've posted few days ago. This works better. It must be in the .bashrc. Sorry for a "rtfm" question, but can I write this to a separate file and "#include" it in some way in .bashrc? //I -- *

Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-05 Thread Martin Kacerovsky
Hi, On Wed, Mar 05, 2003 at 01:00:42PM +0100, Ivar Alm wrote: > At 23:18 2003-03-04, Fabio Sirna wrote: > > Sorry for a "rtfm" question, but can I write this to a > separate file and "#include" it in some way in .bashrc? Of course you can, e.g. put it into ~/.colorbashrc and then put t

Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-05 Thread Ivar Alm
At 23:18 2003-03-04, Fabio Sirna wrote: I do some change on the bash script that I've posted few days ago. This works better. It must be in the .bashrc. Sorry for a "rtfm" question, but can I write this to a separate file and "#include" it in some way in .bashrc? //I -- **

Re: Color bash prompt in function of the charge of battery (acpi based)

2003-03-04 Thread Jason Kraftcheck
Here's an update to my APM version of this. It incoprorates some of Fabio's changes to his ACPI version. It also reads directly from /proc/apm rather than using the apm command because it is faster and easier to parse, but may break for other kernel versions (I'm using 2.4.20). if [ -f /pro