revolver
revolver copied to clipboard
avoid ZDOTDIR as a default location for state files
Hi,
I was wondering if i could i ask you to reconsider the location where revolver stores its state files. The $REVOLVER_DIR
is set to $ZDOTDIR/.revolver
in my case and the $ZDOTDIR
directory is often under version control. Would it be possible to try using XDG_CACHE_HOME if it is set?
dir=${REVOLVER_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/.revolver}
Also i see it is possible to set $REVOLVER_DIR
manually and change this directory, but there is no mention of it in README
.
Thanks.
https://github.com/molovo/revolver/blob/6424e6cb14da38dc5d7760573eb6ecb2438e9661/revolver#L88 https://github.com/molovo/revolver/blob/6424e6cb14da38dc5d7760573eb6ecb2438e9661/revolver#L165 https://github.com/molovo/revolver/blob/6424e6cb14da38dc5d7760573eb6ecb2438e9661/revolver#L199 https://github.com/molovo/revolver/blob/6424e6cb14da38dc5d7760573eb6ecb2438e9661/revolver#L231