title: ZSH - Oh My Zsh: modify PROMPT
body: <p>I am trying to modify the PROMPT variable to include some additional information. My current PROMPT also includes git status on the right hand side. It looks like this:</p>
  
  <pre><code>ex2 ➤                                                      git:master*                                                                                  
  </code></pre>
  
  <p>Screen shot of the same:
  <a href="https://i.stack.imgur.com/lI8VC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lI8VC.png" alt="Screen shot of the same"></a></p>
  
  <p>I would like to some text in front of the current folder-- like [Drone] for example. I am currently doing it as follows,</p>
  
  <pre><code>export PROMPT=%{"$fg[green] [Donre]"$fg[$NCOLOR]%}%c ➤ %{$reset_color%}
  </code></pre>
  
  <p>But this creates two issues.
  1. The arrow character is not parsed correctly anymore and I get an error like</p>
  
  <pre><code>" not valid in this context: ➤"
  </code></pre>
  
  <p>2. The git status is pushed to the next line. 
  The new prompt appears as,</p>
  
  <pre><code> /home/arul/.zshrc:export:100: not valid in this context: ➤
   [Drone]ex2              git:maste
   r*                                                                                                                                                                     
  </code></pre>
  
  <p>Screen shot of the same:
  <a href="https://i.stack.imgur.com/bxvEm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bxvEm.png" alt="Screen shot of the same"></a></p>
  
  <p>Could someone help me in modifying the PROMPT correctly?</p>