Expand tilde in @resurrect-dir

Fixes #74
pull/74/merge
Bruno Sutic 2015-07-07 18:23:43 +02:00
parent cb6e31e12f
commit 6fe70853a5
No known key found for this signature in database
GPG Key ID: 66D96E4F2F7EF26C
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
content history
- refactoring: drop dependency on `paste` command
- bugfix for pane contents restoration
- expand tilde char `~` if used with `@resurrect-dir`
### v2.4.0, 2015-02-23
- add "tmux-test"

View File

@ -74,7 +74,8 @@ is_session_grouped() {
# path helpers
resurrect_dir() {
echo $(get_tmux_option "$resurrect_dir_option" "$default_resurrect_dir")
local path="$(get_tmux_option "$resurrect_dir_option" "$default_resurrect_dir")"
echo "${path/#\~/$HOME}" # expands tilde if used with @resurrect-dir
}
resurrect_file_path() {