From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22768 invoked from network); 25 Mar 2002 19:03:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Mar 2002 19:03:50 -0000 Received: (qmail 3754 invoked by alias); 25 Mar 2002 19:03:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4778 Received: (qmail 3735 invoked from network); 25 Mar 2002 19:03:22 -0000 Date: Mon, 25 Mar 2002 11:03:11 -0800 (PST) From: Bart Schaefer Sender: schaefer@ns1.sodaware.com To: Marijan Peh cc: zsh-users Subject: Re: My zshrc; any sugestions welcome In-Reply-To: <20020325175935.A1729@nymos.home.hr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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]} ^^^ > > kill -9 `print -r $pid` > > > > Any reason why that isn't just `kill -9 $pid'? > > newlines (it can also go with `print -n $pid`) Ah. You want kill -9 $=pid > Thanks for cool tips. Sure.