Added env var to set Autotmux shell

This commit is contained in:
madmaurice 2015-10-13 18:08:35 +02:00
parent 577dc829c2
commit 0267c82083

View file

@ -1,5 +1,5 @@
if [ -z "$TMUX" ]; then
if which tmux >/dev/null 2>&1; then
tmux -q has-session && exec tmux attach-session -d || exec tmux new-session
tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -c ${TMUX_SHELL:-/bin/sh}
fi
fi