Fix #215, use XDG_DATA_HOME
This commit is contained in:
parent
99469c4a9b
commit
97532ac498
1 changed files with 1 additions and 1 deletions
2
tpm
2
tpm
|
@ -28,7 +28,7 @@ set_default_tpm_path() {
|
||||||
local tpm_path="$DEFAULT_TPM_PATH"
|
local tpm_path="$DEFAULT_TPM_PATH"
|
||||||
|
|
||||||
if [ -f "$xdg_tmux_path/tmux.conf" ]; then
|
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
|
fi
|
||||||
|
|
||||||
tmux set-environment -g "$DEFAULT_TPM_ENV_VAR_NAME" "$tpm_path"
|
tmux set-environment -g "$DEFAULT_TPM_ENV_VAR_NAME" "$tpm_path"
|
||||||
|
|
Loading…
Reference in a new issue