From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4319 invoked from network); 26 Mar 2002 09:44:07 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Mar 2002 09:44:07 -0000 Received: (qmail 13221 invoked by alias); 26 Mar 2002 09:43:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4781 Received: (qmail 13210 invoked from network); 26 Mar 2002 09:43:44 -0000 X-Authentication-Warning: nymos.home.hr: mpeh set sender to marijan.peh@hi.hinet.hr using -f Date: Tue, 26 Mar 2002 10:38:35 +0100 From: Marijan Peh To: zsh-users Subject: Re: My zshrc; any sugestions welcome Message-ID: <20020326103835.A175@nymos.home.hr> Mail-Followup-To: Marijan Peh , zsh-users References: <20020325175935.A1729@nymos.home.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from schaefer@brasslantern.com on Mon, Mar 25, 2002 at 11:03:11AM -0800 X-Editor: VIM - Vi IMproved X-Operating-System: Linux nymos.home.hr 2.4.18-rmap On Mon, Mar 25, 2002 at 11:03:11AM -0800, Bart Schaefer wrote: > On Mon, 25 Mar 2002, Marijan Peh wrote: > > > > It'd probably be better to use ${${(z)1}[1]} there, rather than $1, if > > > you want just the command name. Or even ${${${(z)1}:#*[[:punct:]]*}[1]} > > > in case the first "word" is an open-paren or something. > > > > This display just first letter of current running job. ex: > > I run 'top' but is shows only 't' in titlebar. > > Oh, sorry, in double quotes you need ${${(@)${(z)1}:#*[[:punct:]]*}[1]} > ^^^ Nope, still the same. -- .~. marijan.peh@hi.hinet.hr /V\ /bin/zsh 4.1.0-dev-4 (i686-pc-linux-gnu) /( )\ Linux nymos.home.hr 2.4.18-rmap-rml #3 ^^ ^^