Skip to content

Commit

Permalink
Fix auto-restore feature
Browse files Browse the repository at this point in the history
Credit to @badjware for the solution

Fixes $45, #52, #54
  • Loading branch information
bruno- committed Feb 7, 2019
1 parent 90f4a00 commit 4e22796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

### master
- bugfix: "auto restore" feature stopped working

### v3.1.0, 2015-03-14
- properly quote scripts
Expand Down
9 changes: 1 addition & 8 deletions continuum.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,8 @@ add_resurrect_save_interpolation() {
fi
}

number_of_sessions() {
tmux list-sessions |
wc -l |
sed "s/ //g"
}

# when tmux server is first started, number of sessions is 0
just_started_tmux_server() {
[ "$(number_of_sessions)" -eq 0 ]
[ "$(tmux display-message -p -F '#{start_time}')" -gt "$(($(date +%s)-10))" ]
}

start_auto_restore_in_background() {
Expand Down

0 comments on commit 4e22796

Please sign in to comment.