Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Prompt width miscomputed with conditional substring
- X-seq: zsh-workers 34853
- From: Bernie Innocenti <bernie@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Prompt width miscomputed with conditional substring
- Date: Mon, 06 Apr 2015 17:02:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=codewiz.org; s=default; t=1428354152; bh=lWzKzIOwkNSKWDNitfAJQeCVtH8yWix9RYv/5kUu5+k=; h=Date:From:To:Subject:From; b=Ej6pJ0pJwAzhAwG3AL66gMeh97+tBKi12u/PdCAK7+kwJvqavenewLWgXyREvH2fJ 7BgzzUTIuBRCow/dN3qcGvAy1oWQBGOuYq9g2TRIRQcph7Ql1CZpcjJMeHo68LfaOp SDE72YGzoPqsG0Y+5PeD3nhSLoFWOky49y8dkLBg=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Codewiz - http://codewiz.org/
My zsh prompt is:
local ret_status="%(?:%{$fg_bold[green]%}%%:%{$fg_bold[red]%}%%%s)"
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m:%{$fg[yellow]%}%~
%(1j,$fg[cyan][%j],)${ret_status}%{$reset_color%} "
When I have background jobs, the prompt becomes 3 characters longer and
command-line editing seems to wrap at the wrong column.
This is also reproducible with zsh built from git (zsh-5.0.7-374-gd4f50f2).
--
_ // Bernie Innocenti
\X/ http://codewiz.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author