Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
preexec and multi-line command.
- X-seq: zsh-users 14844
- From: Piotr Karbowski <jabberuser@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: preexec and multi-line command.
- Date: Sat, 20 Feb 2010 20:20:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=bZGWug5VF50OJ/EFaLNhUn2G9q5LoaSLqU9u7Xt57ik=; b=dvoXD58/sTOlQG2e/pXj5+XBKP9QAOCLSGneqMuGVlIbwlcjQShiXKuFfVpT0Jb28h J11GtpHXNwSoRsxCzQOU0emxLFC+PIglgtUkHRZ7GzGa1VfNFroJOyqLSwPA9EU0zsfI ewvqweqwMtcGFLp62C4iktirJQv1Hp2il0Wew=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=N7HfrG5vEmliOkdfu0iaj/5rtkUJYwkmDVV81Apqrf0lFciCFq3QFda22KT01DWSYk 5/qtqp9Ug8tcsuiIHMXVo4maI3WqfpWbe0RFHxzcBR/k5J+LrfyU+wct7fjOmoispoiJ ZPMNACVso5nRLH18HtnMhvqhgI2eyZzxFkS8s=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi there!
I have starge problem after I added preexec function to my zshrc to
add in terminal TITLE what is running inside.
## cut here
case $TERM in
rxvt*|xterm|nxterm|gnome|screen)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
preexec () { print -Pn "\e]0;$1 [%n@%m: %~]\a"}
;;
esac
## cut here
Issue is that when I doing something multiline, I got:
## cut here
slashbeast@ragnarok ~ % echo 1\
slashbeast@ragnarok ~ > 2\
slashbeast@ragnarok ~ > 3\
slashbeast@ragnarok ~ >
2
3
[slashbeast@ragnarok: ~]123
slashbeast@ragnarok ~ %
## cut here
How can I fix it?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author