configfiles/zsh-autotmux/.zsh/99-autotmux.zsh
2015-10-26 20:25:37 +01:00

6 lines
197 B
Bash

# Auto tmux
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 -c ${TMUX_SHELL:-/bin/sh}
fi
fi