mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Restrict load-session command to within Tmux to avoid an odd bug
This commit is contained in:
@@ -13,4 +13,9 @@ fi
|
||||
# Load runtime functions.
|
||||
source "$TMUXIFIER/runtime.sh"
|
||||
|
||||
load_session "$1"
|
||||
if [ ! -z $TMUX ]; then
|
||||
load_session "$1"
|
||||
else
|
||||
echo "tmuxifier: 'load-session' command can only be used from within Tmux."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user