HISTIGNORE not working in zsh
<p>I have added </p>

<pre><code>export HISTIGNORE="ls:cd:pwd:exit:cd .."
</code></pre>

<p>to my .zshrc file.</p>

<p>Deleted .zsh_history and restarted terminal but it still wont ignore those commands.</p>

<p><a href="https://i.stack.imgur.com/wQCge.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wQCge.png" alt="enter image description here"></a></p>