From 3ec9dd630540840bbd1af15c027f9501d5380770 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 21 Mar 2024 10:45:04 +0100 Subject: [PATCH] tmux: Place resurrect files in XDG_DATA_HOME Unfortunately I need to hardcode XDG_DATA_HOME as resurrect-dir does not support environment variables except for HOME and HOSTNAME. --- .config/tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 6efd3a0..ed3c045 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -208,6 +208,9 @@ set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'vim-tmux-navigator' +# XDG compliance +# NOTE: Does not support environment variables except for HOME and HOSTNAME +set -g @resurrect-dir "$HOME/.local/share/tmux/resurrect" # Capture pane content set -g @resurrect-capture-pane-contents 'on' # Change keybindings