Merge pull request #458 from oliverlew/xdg_dir

use XDG_DATA_HOME for resurrect-dir path
This commit is contained in:
Bruno Sutic 2022-10-22 16:31:55 +02:00 committed by GitHub
commit a2ddfb96b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"