From 7c3a16e2431b3b28e78585729db70bf90e4797af Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 16 Jul 2019 20:58:31 +0200 Subject: [PATCH] Default value for XDG_CONFIG_HOME --- scripts/helpers/plugin_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers/plugin_functions.sh b/scripts/helpers/plugin_functions.sh index cbd1b55..14721c2 100644 --- a/scripts/helpers/plugin_functions.sh +++ b/scripts/helpers/plugin_functions.sh @@ -20,7 +20,7 @@ _CACHED_TPM_PATH="$(_tpm_path)" # _get_user_tmux_conf() { # Define the different possible locations. - xdg_location="$XDG_CONFIG_HOME/tmux/tmux.conf" + xdg_location="${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf" default_location="$HOME/.tmux.conf" # Search for the correct configuration file by priority.