Fix #215, use XDG_DATA_HOME

This commit is contained in:
Wu Zhenyu 2023-10-07 16:03:33 +08:00
parent 99469c4a9b
commit 97532ac498
No known key found for this signature in database
GPG Key ID: 0E07E1F8C0EC10AD
1 changed files with 1 additions and 1 deletions

2
tpm
View File

@ -28,7 +28,7 @@ set_default_tpm_path() {
local tpm_path="$DEFAULT_TPM_PATH"
if [ -f "$xdg_tmux_path/tmux.conf" ]; then
tpm_path="$xdg_tmux_path/plugins/"
tpm_path="${XDG_DATA_HOME:-$HOME/.local/share}/tmux/plugins/"
fi
tmux set-environment -g "$DEFAULT_TPM_ENV_VAR_NAME" "$tpm_path"