zsh-users
 help / color / mirror / code / Atom feed
* positioning of RPS1
@ 2018-03-24 18:44 Ray Andrews
  2018-03-24 23:20 ` Grant Taylor
  2018-03-25 16:36 ` Ray Andrews
  0 siblings, 2 replies; 4+ messages in thread
From: Ray Andrews @ 2018-03-24 18:44 UTC (permalink / raw)
  To: Zsh Users


In my .zshrc:


_blu=$'%{\e[1;34m%}'

_mag=$'%{\e[1;35m%}'

PS1=$'\n$_tty $_blu%d $_mag%L%{\e[0m%}$ %{\e[0m%}'

RPS1=$'%t %w'

... and all's well but editing the name of the color variables:

blu=$'%{\e[1;34m%}'

mag=$'%{\e[1;35m%}'

PS1=$'\n$_tty $blu%d $mag%L%{\e[0m%}$ %{\e[0m%}'

RPS1=$'%t %w'

... now RPS1 is not on the right margin but somewhat to the left.  I 
remember reading something about zsh needing to calculate the actual 
width of the promps but I can't find it.  Does someone have a fast fix, 
or a reference in the docs? Tx.



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

end of thread, other threads:[~2018-03-25 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-24 18:44 positioning of RPS1 Ray Andrews
2018-03-24 23:20 ` Grant Taylor
2018-03-25 16:36 ` Ray Andrews
2018-03-25 18:42   ` Grant Taylor

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