Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: My zshrc; any sugestions welcome
- X-seq: zsh-users 5021
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: My zshrc; any sugestions welcome
- Date: Fri, 31 May 2002 22:23:48 -0500
- In-reply-to: <20020401123118.A381@xxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Radio Marañón, Peru
- References: <20020325175935.A1729@xxxxxxxxxxxxx> <Pine.LNX.4.44.0203251101280.5070-100000@xxxxxxxxxxxxxxxx> <20020326103835.A175@xxxxxxxxxxxxx> <1020326151112.ZM32099@xxxxxxxxxxxxxxxxxxxxxxx> <20020326174631.A831@xxxxxxxxxxxxx> <1020326171031.ZM32266@xxxxxxxxxxxxxxxxxxxxxxx> <20020401123118.A381@xxxxxxxxxxxxx>
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author