Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh portable script
- X-seq: zsh-users 15188
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: zsh portable script
- Date: Wed, 14 Jul 2010 23:45:01 +1200 (NZST)
- Cc: zsh-users@xxxxxxx
- In-reply-to: <alpine.LNX.2.01.1007130942440.4808@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <1007130241570.5546@smasher> <201007121737.21296.joke@xxxxxxxxx> <201007121745.20332.joke@xxxxxxxxx> <20100712161519.GO1499@xxxxxxxxxxxxxxxxxxx> <1007140055140.5546@smasher> <alpine.LNX.2.01.1007130942440.4808@xxxxxxxxxxx>
On Tue, 13 Jul 2010, Benjamin R. Haskell wrote:
Are permissions the reason you suggest running it under cron? Otherwise,
why not just regenerate in precmd()?
=================
now i remember why i'm running under cron, instead of in precmd...
http://smasher.org/tmp/zsh-bsd-sysctl-slow.png
freebsd's sysctl is way too slow to invoke every time i draw a prompt.
linux's /sys/ and /proc/ are reasonably fast, but i already had a cron job
written for bsd, and very minor changes were needed to make it work with
linux.
i guess i'll leave it alone for now, but if i find a way to get that
battery info from freebsd more quickly i'll think about adding the battery
functionality directly into the zshrc.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"In fact a vegan driving a hummer would be contributing
less greenhouse gas carbon emissions than a meat eater
riding a bicycle."
-- Capt Paul Watson, A Very Inconvenient Truth
Messages sorted by:
Reverse Date,
Date,
Thread,
Author