Auto tmux

This commit is contained in:
madmaurice 2015-10-08 18:08:12 +02:00
parent 7396d45807
commit 3b0e9fb43a

View file

@ -0,0 +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
fi
fi