mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-11-24 12:18:56 +00:00
Fix auto-restore feature
Credit to @badjware for the solution Fixes $45, #52, #54
This commit is contained in:
parent
90f4a00c41
commit
4e2279688d
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
### master
|
||||
- bugfix: "auto restore" feature stopped working
|
||||
|
||||
### v3.1.0, 2015-03-14
|
||||
- properly quote scripts
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user