use XDG_DATA_HOME for resurrect-dir path

pull/458/head
Lu Xu 2022-10-22 14:21:51 +08:00 committed by GitHub
parent 88297b4c3a
commit dd36a4561b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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"