From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14369 invoked from network); 26 Jun 2001 13:47:53 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Jun 2001 13:47:53 -0000 Received: (qmail 17890 invoked by alias); 26 Jun 2001 13:47:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15094 Received: (qmail 17878 invoked from network); 26 Jun 2001 13:47:02 -0000 Date: Tue, 26 Jun 2001 09:47:41 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: prompt_clint and battery level with no battery Message-ID: <20010626094741.A12419@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i On a system with /proc/apm that is not a laptop and thus has no battery, my prompt has an unfortunate -1% in it. I also think that the prompt system should behave more harmoniously with user-defined precmd()s. Index: Functions/Prompts/prompt_clint_setup =================================================================== RCS file: /cvsroot/zsh/zsh/Functions/Prompts/prompt_clint_setup,v retrieving revision 1.1 diff -u -r1.1 prompt_clint_setup --- Functions/Prompts/prompt_clint_setup 2001/05/27 05:03:11 1.1 +++ Functions/Prompts/prompt_clint_setup 2001/06/26 13:36:45 @@ -67,7 +67,7 @@ local bat bat=${${="$(