mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user