Skip to content

Commit 85d86ce

Browse files
committed
Store sessions per socket, allowing multiple local servers via -L
Slightly better version of PR tmux-plugins#481 by @strogonoff.
1 parent 9a46d48 commit 85d86ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pane_content_files_restore_from_archive() {
109109

110110
resurrect_dir() {
111111
if [ -z "$_RESURRECT_DIR" ]; then
112-
local path="$(get_tmux_option "$resurrect_dir_option" "$default_resurrect_dir")"
112+
local path="$(get_tmux_option "$resurrect_dir_option" "$default_resurrect_dir")/$(basename "${TMUX%%,*}" 2>/dev/null)"
113113
# expands tilde, $HOME and $HOSTNAME if used in @resurrect-dir
114114
echo "$path" | sed "s,\$HOME,$HOME,g; s,\$HOSTNAME,$(hostname),g; s,\~,$HOME,g"
115115
else

0 commit comments

Comments
 (0)