From: "Jorge Israel Peña" <jorgepblank@gmail.com>
To: zsh-users@zsh.org
Subject: prompts with newlines get printed twice
Date: Fri, 23 Sep 2011 19:52:58 -0700 [thread overview]
Message-ID: <CAF3NQe_arDSLBRUEKRfZyDx-2QhsfP63xFYktxKK45a1iA6Eow@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
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
next reply other threads:[~2011-09-24 3:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-24 2:52 Jorge Israel Peña [this message]
2011-09-24 18:24 ` Bart Schaefer
2011-09-24 18:31 ` Mikael Magnusson
2011-09-24 23:24 ` Jorge Israel Peña
2011-09-25 0:14 ` Jorge Israel Peña
2011-09-25 22:13 ` Bart Schaefer
2011-09-25 23:31 ` Jorge Israel Peña
2011-09-26 4:22 ` Jorge Israel Peña
2011-09-26 4:29 ` Jorge Israel Peña
2011-09-27 1:42 ` Jorge Israel Peña
2011-09-27 1:48 ` Jorge Israel Peña
2011-09-27 14:32 ` 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=CAF3NQe_arDSLBRUEKRfZyDx-2QhsfP63xFYktxKK45a1iA6Eow@mail.gmail.com \
--to=jorgepblank@gmail.com \
--cc=zsh-users@zsh.org \
/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).