From 509e898da67f4c3d81f232af292c84a8a693ab6a Mon Sep 17 00:00:00 2001 From: Diego Ximenes Mendes Date: Sat, 2 Mar 2019 09:49:42 -0300 Subject: [PATCH] Fix automatic restore. --- continuum.tmux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/continuum.tmux b/continuum.tmux index 5087f98..00ad3e9 100755 --- a/continuum.tmux +++ b/continuum.tmux @@ -44,7 +44,9 @@ add_resurrect_save_interpolation() { } just_started_tmux_server() { - [ "$(tmux display-message -p -F '#{start_time}')" -gt "$(($(date +%s)-10))" ] + local tmux_start_time + tmux_start_time="$(tmux display-message -p -F '#{start_time}')" + [ "$tmux_start_time" == "" ] || [ "$tmux_start_time" -gt "$(($(date +%s)-10))" ] } start_auto_restore_in_background() {