title: Change Location of zcompdump Files
body: <p>Is it possible to change the location of .zcompdump and .zhistory files generated by ZSH? <br>
  They are polluting my Home Directory. <br>
  One possible solution I found was changing the value of <code>$ZDOTDIR</code> to <code>$HOME/.config/zsh</code>. I did the following, but it does not seem to work (temp files are still created in the home directory).</p>
  
  <pre><code>$ cat ~/.zshenv
  ZDOTDIR=$HOME/.zsh
  . $ZDOTDIR/.zshenv
  </code></pre>