Re: energy data in ksh prompts

2009-03-07 Thread Lars Noodén
Denis Doroshenko wrote: > er, there is a \D{format} for that, see ksh(1) Yes, there's a lot there. date(1) was just the first, short way of testing that the output changes, much nicer than tail -n 1 /var/something... > backslashed special char for sensors, like \S{name} would be neat > thing, t

Re: energy data in ksh prompts

2009-03-07 Thread Denis Doroshenko
On Sat, Mar 7, 2009 at 2:47 PM, Lars NoodC)n wrote: > Here are two variations of the standard ksh shell prompt that I myself > find useful on several of my devices, in particular the portables. B The > first prompt shows the temperature on cpu0, the second the amount of > battery claimed to remain

energy data in ksh prompts

2009-03-07 Thread Lars Noodén
Here are two variations of the standard ksh shell prompt that I myself find useful on several of my devices, in particular the portables. The first prompt shows the temperature on cpu0, the second the amount of battery claimed to remain: export PS1='`( /sbin/sysctl hw.sensors.cpu0.temp0 |