RPROMPT not showing on initial prompt
<p>I'm seeing a strange issue when trying to use RPROMPT to configure my zsh prompt. I'm not using oh-my-zsh or any other plugin manager. Here is my <code>.zshrc</code> file:</p>

<pre><code>function zle-line-init {
  RPROMPT="foo"
  zle reset-prompt
}

zle -N zle-line-init
</code></pre>

<p>However, on the <em>first</em> prompt (when opening a new shell, or new tmux window/pane), the <code>foo</code> doesn't show. (I then press enter and the RPROMPT shows for the new prompt.)</p>

<p>Why doesn't it show on the first one?</p>