Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
prompts with newlines get printed twice
- X-seq: zsh-users 16411
- From: Jorge Israel Peña <jorgepblank@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: prompts with newlines get printed twice
- Date: Fri, 23 Sep 2011 19:52:58 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FPms8ujaLrs0PswyXvFJHAQsoGLBwzbCEhnvB0I4+l4=; b=XYOtJA9MJ+q8Sc2gv+IzkXXny885TsXOED3MewJ1h7ZiOtDpYHBfNbnX2VCyz9GPcA gvIsAr8ZPKVGXM6rIV7r4i78+Kdfw2Rgfl7TY43bS1HAuM6cJeP6tJ6z3jjF6SSjDrcj wSYksBC/ak0eofW/t/tx2pyxK0F+cGnmZRfeE=
- 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
Hey guys. I'm new to zsh and I have been playing with getting my prompt set
up nicely.
The problem I'm encountering is that when I create a newline in the prompt,
the prompt gets printed twice when I open the terminal.
Example:
In ~/.zshrc
PROMPT='%n @ %m
$ '
results in:
Last login: Fri Sep 23 19:13:38 on ttys000
user at host
user at host
$
This happens without fail whenever I open the Terminal application,
regardless of the amount of tabs. However, once the application is running,
if I open a new window or tab, this does not happen and the prompt is
correctly displayed only once. What intrigues me is that it only prints the
top part twice but not the '$' part. Any guesses as to why this might be
happening? I have spent hours on it to no avail, so I would really
appreciate any help.
I'm on Mac OS X 10.7 Lion.
zsh version is 4.3.11, what came with Lion.
I also experience this with 4.3.12 that I installed with brew.
This happens even if I change the Terminal to run /bin/zsh instead of
/usr/bin/login
Thanks.
--
- Jorge Israel Peña
Messages sorted by:
Reverse Date,
Date,
Thread,
Author