configfiles/zsh-autotmux/.zsh/99-autotmux.zsh

6 lines
185 B
Bash
Raw Normal View History

2015-10-08 18:08:12 +02:00
if [ -z "$TMUX" ]; then
2015-10-13 18:08:35 +02:00
if which tmux >/dev/null 2>&1; then
tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -c ${TMUX_SHELL:-/bin/sh}
fi
2015-10-08 18:08:12 +02:00
fi