Allow using '$HOSTNAME' in @resurrect-dir

Closes #197
This commit is contained in:
Bruno Sutic
2017-06-01 17:18:39 +02:00
parent eef844c747
commit fbed36ad0e
3 changed files with 14 additions and 1 deletions

View File

@ -4,3 +4,12 @@ By default Tmux environment is saved to a file in `~/.tmux/resurrect` dir.
Change this with:
set -g @resurrect-dir '/some/path'
Using environment variables or shell interpolation in this option is not
allowed as the string is used literally. So the following won't do what is
expected:
set -g @resurrect-dir '/path/$MY_VAR/$(some_executable)'
Only the following variables and special chars are allowed:
`$HOME`, `$HOSTNAME`, and `~`.