From 2ecb0510fa4f8858247e5aac1bb403c3c0f8ca8d Mon Sep 17 00:00:00 2001 From: Jaseem Abid Date: Wed, 1 Oct 2025 09:59:40 +0100 Subject: [PATCH] docs: Update default save directory The default save directory changed from ~/.tmux/resurrect to ~/.local/share/tmux/resurrect in dd36a45, but the documentation was not updated. This commit updates docs/save_dir.md to document the current behavior including XDG_DATA_HOME support and backward compatibility with the old directory location. --- docs/save_dir.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/save_dir.md b/docs/save_dir.md index bf724c69..d4bcdfc0 100644 --- a/docs/save_dir.md +++ b/docs/save_dir.md @@ -1,6 +1,9 @@ # Resurrect save dir -By default Tmux environment is saved to a file in `~/.tmux/resurrect` dir. +By default Tmux environment is saved to a file in `~/.local/share/tmux/resurrect` +(or `$XDG_DATA_HOME/tmux/resurrect` if that variable is set). + +For backward compatibility, if `~/.tmux/resurrect` already exists, it will be used instead. Change this with: set -g @resurrect-dir '/some/path'