cd-bookmark
cd-bookmark copied to clipboard
Support $XDG_CONFIG_HOME
Backwards compatible change that supports storing the bookmarks in
$XDG_CONFIG_HOME/cd-bookmarks.
- If the user as set the previously existing
$CD_BOOKMARK_FILE, this is always overriding. - If the user has created/moved the directory/file
$XDG_CONFIG_HOME/cd-bookmarks/(bookmarks), use this - 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