zsh-users
 help / color / mirror / code / Atom feed
* prompts with newlines get printed twice
@ 2011-09-24  2:52 Jorge Israel Peña
  2011-09-24 18:24 ` Bart Schaefer
  0 siblings, 1 reply; 12+ messages in thread
From: Jorge Israel Peña @ 2011-09-24  2:52 UTC (permalink / raw)
  To: zsh-users

[-- 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-27 14:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-24  2:52 prompts with newlines get printed twice Jorge Israel Peña
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

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).