Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

positioning of RPS1




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.




Messages sorted by: Reverse Date, Date, Thread, Author