title: zsh change prompt input color
body: <p>I want to change the color of the input text in zsh (the text that I type for each command). Example: in <code>user@host&gt; ls ~/</code> I would want <code>ls ~/</code> <strong>to be yellow to stand out from standard output.</strong> </p>
  
  <p>I know I can accomplish this in <strong>bash</strong> using </p>
  
  <pre><code>export PS1=" $BIGreen \u@\h \w \$ $IYellow" 
  </code></pre>
  
  <p>At the end of the prompt, the color is set to Yellow, input text I type is yellow (with the appropriate color variables defined). And then</p>
  
  <pre><code>trap 'echo -ne "\e[0m"' DEBUG
  </code></pre>
  
  <p>Which resets the color to normal when the outputs of my command are displayed.</p>
  
  <p>How can I accomplish this in <strong>zsh</strong>? Currently, I have</p>
  
  <pre><code>PROMPT=$'{$fg[green]%}%n@%{$fg[green]%}%m %# %{$fg[yellow]%}'
  </code></pre>
  
  <p>in .zshrc (setting color to yellow at the end) but it does not work. (I also wouldn't know how to set the color back to white after the command).</p>