title: alias zsh: parse error near `do'
body: <p>I'm facing an issue with an alias for <code>zsh</code>.</p>
  
  <p>I've this alias in my <code>.zprofile</code> file: <code>alias cleanimg="for i in `docker images | grep '&lt;none&gt;' | awk '{print $3}'`; do; docker rmi -f $i; done"</code>.</p>
  
  <p>When running <code>cleanimg</code> from my terminal I'm getting this error: <code>zsh: parse error near `do'</code>.</p>
  
  <p>I tried to remove the <code>;</code> right after the <code>do</code> keyword but it didn't fix the issue.
  However, that alias runs correctly if I execute the code directly from a terminal.</p>
  
  <p>Can anybody help me with this syntax error?</p>
  
  <p>Thanks by advance.</p>