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

@@ -18,9 +18,5 @@ fi
# Load runtime functions.
source "$TMUXIFIER/runtime.sh"
if [ ! -z $TMUX ]; then
load_session "$1"
else
echo "tmuxifier: 'load-session' command can only be used from within Tmux."
exit 1
fi
# Load session file.
load_session "$1"