mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-14 00:08:49 +00:00
Merge pull request #458 from oliverlew/xdg_dir
use XDG_DATA_HOME for resurrect-dir path
This commit is contained in:
commit
a2ddfb96b9
@ -1,4 +1,8 @@
|
||||
default_resurrect_dir="$HOME/.tmux/resurrect"
|
||||
if [ -d "$HOME/.tmux/resurrect" ]; then
|
||||
default_resurrect_dir="$HOME/.tmux/resurrect"
|
||||
else
|
||||
default_resurrect_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/tmux/resurrect
|
||||
fi
|
||||
resurrect_dir_option="@resurrect-dir"
|
||||
|
||||
SUPPORTED_VERSION="1.9"
|
||||
|
Loading…
Reference in New Issue
Block a user