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

Re: zsh portable script



On Wed, 14 Jul 2010, Atom Smasher wrote:

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.
======================

it was just pointed out on freebsd-hackers list that this may not be a freebsd v linux issue... it may be the hardware. eventually i'll have to reboot this freebsd laptop, and when i do i'll check it out with an ubuntu CD. if that also runs slow, then the battery script will have to stay separate from the zshrc... unless some other changes are made...?


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"Don't fight it son. Confess quickly!
	 If you hold out too long you could
	 jeopardize your credit rating."
		-- Brazil



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