Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
tmux-resurrect
Commits
655bdb9a
Unverified
Commit
655bdb9a
authored
Aug 28, 2014
by
Bruno Sutic
Browse files
Refactor checking if tmux session file exists
parent
3da5d61b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
655bdb9a
# Changelog
### master
-
refactor checking if saved tmux session exists
### v0.0.5, 2014-08-28
-
restore pane processes
...
...
scripts/session_restorer.sh
View file @
655bdb9a
...
...
@@ -15,8 +15,8 @@ is_line_type() {
check_saved_session_exists
()
{
local
saved_session
=
"
$(
last_session_path
)
"
if
[
!
-f
$saved_session
]
;
then
display_message
"Saved session not found!"
exit
display_message
"Saved
tmux
session not found!"
return
1
fi
}
...
...
@@ -149,8 +149,7 @@ restore_active_and_alternate_sessions() {
}
main
()
{
if
supported_tmux_version_ok
;
then
check_saved_session_exists
if
supported_tmux_version_ok
&&
check_saved_session_exists
;
then
restore_all_sessions
restore_all_pane_processes
restore_pane_layout_for_each_window
>
/dev/null 2>&1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment