Restrict load-session command to within Tmux to avoid an odd bug

This commit is contained in:
2012-04-22 17:02:18 +01:00
parent 58f40fda87
commit 0da5bf3ef1

View File

@@ -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