title: zsh colours only work when command used in terminal directly
body: <p>I'm trying to write a zsh script which can echo some useful information with colours. As a test I made the following file:</p>
  
  <pre><code>#!/bin/zsh
  
  echo $fg[red] "test"
  </code></pre>
  
  <p>which should just output <code>test</code> in red, however when I run it it outputs <code>test</code> but it is in the default text colour rather then red.</p>
  
  <p>If I just type <code>echo $fg[red] "test"</code> directly into my terminal, then it works correctly and I see the red <code>test</code>, but when I run my file with the above code, the colours don't work.</p>
  
  <p>Is there something I'm missing or doing wrong?</p>