Evite de conserver le process du shell autour de tmux

This commit is contained in:
Meutel 2015-10-11 10:05:42 +02:00
parent 1cd39658f0
commit 4a0fa7db14
1 changed files with 6 additions and 1 deletions

View File

@ -2,4 +2,9 @@
# Crée ou attache une session tmux
export TERM="xterm-256color"
tmux attach || tmux new
if tmux has 2> /dev/null
then
exec tmux attach
else
exec tmux new
fi