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.
pull/505/head
Julian Prein 2024-03-24 14:19:41 +01:00
parent cff343cf9e
commit 827854010b
No known key found for this signature in database
GPG Key ID: CA6B3A516FAC2555
1 changed files with 3 additions and 1 deletions

View File

@ -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'