From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 602 invoked from network); 1 Jun 2002 03:25:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Jun 2002 03:25:50 -0000 Received: (qmail 16527 invoked by alias); 1 Jun 2002 03:25:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5021 Received: (qmail 16515 invoked from network); 1 Jun 2002 03:25:34 -0000 KRecCount: 1 X-Authentication-Warning: hamster.int.radiomaranon.org.pe: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Fri, 31 May 2002 22:23:48 -0500 From: Andy Spiegl To: zsh-users Subject: Re: My zshrc; any sugestions welcome Message-ID: <20020531222348.A4491@radiomaranon.org.pe> Mail-Followup-To: zsh-users References: <20020325175935.A1729@nymos.home.hr> <20020326103835.A175@nymos.home.hr> <1020326151112.ZM32099@candle.brasslantern.com> <20020326174631.A831@nymos.home.hr> <1020326171031.ZM32266@candle.brasslantern.com> <20020401123118.A381@nymos.home.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20020401123118.A381@nymos.home.hr> User-Agent: Mutt/1.3.23i X-PGP-GPG-Keys: finger pgp.andy@spiegl.de OR mail -s "send pgp" auto@spiegl.de Organization: Radio =?iso-8859-15?B?TWFyYfHzbiw=?= Peru Hi Marijan, > > preexec () { > > print -Pn "\033]0;%n@%m ${${(@)${(z)1}:#*[[:punct:]]*}%% *} %~\007" > > } > > I just now noticed that it's not working for 'two_or_more' word job ex. > If i run 'vi .Xresources .vimrc .slrnrc' it only shows 'vi' in titlebar. Right, that's bothering me right now, too. > With '$1' it works perfectly? (shows complete line). > Why is $1 bad? First I didn't understand it either, then I stumbled over more complicated command lines with quotes and stuff in it. For example, try: echo hi | perl -ne 'print "oops\n"' This should just print: oops but with <$1> in preexec it prints: "'>" pts/17 ~oops I'd really get it to work the way you tried, but I can't figure it out. :-( Any suggestions anyone? Thanks, Andy. -- http://peru.spiegl.de Our project http://radiomaranon.org.pe Radio Marañón, Jaén, Perú o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ ---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Do files get embarrassed when they get unzipped?