Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: To have cpu frequency or/and battery state percentage in my prompt



Atom Smasher a écrit :
> On Sun, 14 Oct 2007, giggz wrote:
> 
>> I search ideas to have a good prompt which display the cpu frequency
>> or/and the battery state in my zsh prompt.
>>
>> So if you have ideas and examples which I can put in my zshrc...
> =================
> 
> i've got this (in colors, depending on battery state and level of
> charge) on FreeBSD 6.2 (acpi). if anyone wants details i'll post...
> 
> short version: root runs a cron job every minute to get the battery
> state; this is written to a file in /tmp; the prompt looks for this
> file; if it's there it becomes part of the prompt.
> 
> 
Yes please :)

Thx a lot
Guillaume



Messages sorted by: Reverse Date, Date, Thread, Author