From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users <zsh-users@sunsite.dk>
Subject: Re: My zshrc; any sugestions welcome
Date: Fri, 31 May 2002 22:23:48 -0500 [thread overview]
Message-ID: <20020531222348.A4491@radiomaranon.org.pe> (raw)
In-Reply-To: <20020401123118.A381@nymos.home.hr>
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?
next prev parent reply other threads:[~2002-06-01 3:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-25 10:45 Marijan Peh
2002-03-25 15:46 ` Bart Schaefer
2002-03-25 16:49 ` Adam Spiers
2002-03-25 17:35 ` Marijan Peh
2002-03-25 16:59 ` Marijan Peh
2002-03-25 19:03 ` Bart Schaefer
2002-03-26 9:38 ` Marijan Peh
2002-03-26 15:11 ` Bart Schaefer
2002-03-26 16:46 ` Marijan Peh
2002-03-26 17:10 ` Bart Schaefer
2002-03-26 17:49 ` Marijan Peh
2002-04-01 10:31 ` Marijan Peh
2002-06-01 3:23 ` Andy Spiegl [this message]
2002-06-01 21:29 ` Bart Schaefer
2002-03-26 0:06 ` Joakim Ryden
2002-03-26 1:17 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020531222348.A4491@radiomaranon.org.pe \
--to=zsh.andy@spiegl.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).