Skip to content

Remove manual variable expansion in resurrect-dir; use tmux formats instead.#560

Open
Gullumluvl wants to merge 1 commit intotmux-plugins:masterfrom
Gullumluvl:use-tmux-variables-in-resurrect-dir
Open

Remove manual variable expansion in resurrect-dir; use tmux formats instead.#560
Gullumluvl wants to merge 1 commit intotmux-plugins:masterfrom
Gullumluvl:use-tmux-variables-in-resurrect-dir

Conversation

@Gullumluvl
Copy link

@Gullumluvl Gullumluvl commented Feb 18, 2026

Hey there,

I noticed the original code was leaving backslashes in the save directory path. For instance, given a hostname of servername.example.com and the following configuration line:

set -g @resurrect-dir '~/.tmux/resurrect/$HOSTNAME'

the saved directory becomes /home/myusername/.tmux/resurrect/\servername.example.com.

This proposes to ditch this manual expansion, in favor of using native tmux formats (see updated docs).

The only special string that is substituted in this version is a leading tilde.

Since verbatim $HOSTNAME or $HOME is no longer expanded, maybe a deprecation warning should be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant