Open JS-Zheng opened 2 years ago
Agree. I hope the program respect $XDG_DATA_HOME.
Today if we do a manual install by running install.py --destdir ~/.local on macOS. The install script will copy its shell config files to ~/.local/share/autojump. However, those files get deleted automatically after firing j command once, leading to a 'command not found' error the next time.
Strangely, the comments below state that 'Older versions incorrectly used Linux XDG_DATA_HOME paths on OS X. This migrates autojump files from ~/.local/share/autojump to ~/Library/autojump', which is an unreasonable behaviour for me.
$AUTOJUMP_DARWIN_XDG
: If$XDG_DATA_HOME
is set, use it as the autojump's data home; else if the OS is macOS and$AUTOJUMP_DARWIN_XDG
is false, use~/Library
(for compatibility); otherwise, use XDG's fallback path (i.e.,~/.local/share
).migrate_osx_xdg_data()
in autojump_data.py