You are not logged in.
Hi,
So far, in my zsh prompt, when using color I did something like:
%F{yellow}
in my PROMPT variable.
Now, this seemed to not have worked on some computers (it did not change color, but showed {yellow}).
So I change to using
$fg[yellow]
This works, but currupts my cursor position (it is not at the end of the prompt anymore) when (and only when) I also use RPROMPT.
Can this be corrected? What is the most easier way to define colors that works?
Simple example for prompt that does not work:
PROMPT="$fg[yellow]>"
RPROMPT="$fg[white]($fg[yellow]%T$fg[white])"
Thanks!
Nathan
Offline
Enclose your colors with %{/%}, as in
%{$fg[red]%}
Offline