From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28306 invoked from network); 18 Aug 2006 10:27:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Aug 2006 10:27:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 60248 invoked from network); 18 Aug 2006 10:27:26 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Aug 2006 10:27:26 -0000 Received: (qmail 24645 invoked by alias); 18 Aug 2006 10:27:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22618 Received: (qmail 24625 invoked from network); 18 Aug 2006 10:27:23 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Aug 2006 10:27:23 -0000 Received: (qmail 59866 invoked from network); 18 Aug 2006 10:27:23 -0000 Received: from luonnotar.infodrom.org (195.124.48.78) by a.mx.sunsite.dk with SMTP; 18 Aug 2006 10:27:22 -0000 Received: by luonnotar.infodrom.org (Postfix, from userid 10) id CCC9C366B84; Fri, 18 Aug 2006 12:27:21 +0200 (CEST) Received: by finlandia.home.infodrom.org (Postfix, from userid 2006) id 06834FDA9; Fri, 18 Aug 2006 12:26:02 +0200 (CEST) Date: Fri, 18 Aug 2006 12:26:02 +0200 From: Matthias Kopfermann To: Zsh-Workers Subject: prompt color pbg ,pfg,pbg_bold,pfg_bold in colors function? Message-ID: <20060818102602.GA24702@finlandia.home.infodrom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.12-2006-07-14 Hi, zsh workers! The fg, fg_bold associative array and bg and bg_bold in the colors function are quite useful. For _prompts_ i have to surround every variable with %{ %} which does not , aehem, look too nice. what do you think? would it be fine to have that with wrapped around %{ %} , too so that not everybody has to put these around the keys or roll a prompt_colors_array on his own? I think, i would love to be able to just use PS1=$pbg[red]%~ ... and it just works out of the box in every zsh. Bad idea? Matthias