Is it possible to change the location of .zcompdump and .zhistory files generated by ZSH?
They are polluting my Home Directory.
One possible solution I found was changing the value of $ZDOTDIR
to $HOME/.config/zsh
. I did the following, but it does not seem to work (temp files are still created in the home directory).
$ cat ~/.zshenv
ZDOTDIR=$HOME/.zsh
. $ZDOTDIR/.zshenv
export ZDOTDIR=/your/path/here
in the global configs works (for me, that's located at/etc/zsh/zshenv
). – Private.zshrc
at$ZDOTDIR
. – Pug