cd-bookmark icon indicating copy to clipboard operation
cd-bookmark copied to clipboard

Support $XDG_CONFIG_HOME

Open erikw opened this issue 4 years ago • 0 comments

Backwards compatible change that supports storing the bookmarks in $XDG_CONFIG_HOME/cd-bookmarks.

  1. If the user as set the previously existing $CD_BOOKMARK_FILE, this is always overriding.
  2. If the user has created/moved the directory/file $XDG_CONFIG_HOME/cd-bookmarks/(bookmarks), use this
  3. Else fall back to old default $HOME/.cdbookmark

Thus $XDG_CONFIG_HOME is opt-in for those who want. This logic can be changed in a couple of releases to migrate away from $HOME/.cdbookmark.

Tested on zsh 5.8 on macOS.

Fixes #3

erikw avatar Nov 04 '21 11:11 erikw