Enable load-session command from outside of Tmux

This means that "init" session layouts can now be used to start and/or
re-attach to your main session.

Personally I have a "main" session layout with a couple of default
windows. I can now either start that session, or re-attach to it from
outside of Tmux by just running `tmuxifier s main`, instead of manually
creating a session named "main" and then loading my windows into it.
This commit is contained in:
2013-06-02 18:30:28 +03:00
parent 04c9309668
commit 0e2cfa2327
2 changed files with 2 additions and 9 deletions

View File

@@ -187,9 +187,6 @@ initialize_session() {
local first_window_index=$(__get_first_window_index)
tmux move-window -s "$session:$first_window_index" -t "$session:999"
# Ensure correct pane splitting.
__go_to_session
# Session created, return ok exit status.
return 0
fi