From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19118 invoked from network); 26 Jul 2005 21:52:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Jul 2005 21:52:06 -0000 Received: (qmail 56995 invoked from network); 26 Jul 2005 21:51:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Jul 2005 21:51:58 -0000 Received: (qmail 15593 invoked by alias); 26 Jul 2005 21:51:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9190 Received: (qmail 15582 invoked from network); 26 Jul 2005 21:51:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 26 Jul 2005 21:51:51 -0000 Received: (qmail 56017 invoked from network); 26 Jul 2005 21:51:51 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 26 Jul 2005 21:51:44 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.51) id 1DxXKv-0006yf-JC; Tue, 26 Jul 2005 23:51:42 +0200 Date: Tue, 26 Jul 2005 23:54:15 +0200 From: DervishD To: Joel David Elkins Cc: zsh-users@sunsite.dk Subject: Re: [zsh] Re: psvar expansion with %v Message-ID: <20050726215415.GD68@DervishD> Mail-Followup-To: Joel David Elkins , zsh-users@sunsite.dk References: <20050723084210.GA7913@DervishD> <20050726073322.GA1945@DervishD> <1050726140109.ZM29371@candle.brasslantern.com> <20050726162859.GA17231@elkins.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050726162859.GA17231@elkins.cx> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Hi Joel :) * Joel David Elkins dixit: > As Bart noted, you can't use %v as you want to, but you can get the > same effect using "set promptsubst" and PS1="\$psvar[1]". This was my > solution to a similar problem for my prompt. I attached it in hopes of > giving you more ideas, Raul. Thanks! My PS1 is not as complex as yours, in fact it is quite simple, but nonetheless I'm going to pick some ideas, thanks a lot :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...