revolver icon indicating copy to clipboard operation
revolver copied to clipboard

avoid ZDOTDIR as a default location for state files

Open lukpas opened this issue 4 years ago • 0 comments

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

lukpas avatar Nov 13 '20 19:11 lukpas