From 827854010bb7ac6576cbe4193c635313d639b9d2 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 24 Mar 2024 14:19:41 +0100 Subject: [PATCH] docs/save_dir: Mention XDG_DATA_HOME After XDG_DATA_HOME/tmux/resurrect was introduced as a fallback for resurrect-dir, only docs/restoring_previously_saved_environment.md was updated. Mention the new location also in the documentation about the save directory. --- docs/save_dir.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/save_dir.md b/docs/save_dir.md index bf724c6..1d08c7e 100644 --- a/docs/save_dir.md +++ b/docs/save_dir.md @@ -1,6 +1,8 @@ # Resurrect save dir -By default Tmux environment is saved to a file in `~/.tmux/resurrect` dir. +By default the Tmux environment is saved to a file in the `~/.tmux/resurrect` +directory if it exists or `$XDG_DATA_HOME/tmux/resurrect` otherwise (which in +turn falls back to `~/.local/share/tmux/resurrect` if `XDG_DATA_HOME` is unset). Change this with: set -g @resurrect-dir '/some/path'