diff --git a/.bash_extra b/.bash_extra index 25c5826..dc5ae4b 100644 --- a/.bash_extra +++ b/.bash_extra @@ -1,4 +1,9 @@ #!/bin/bash +### tmux auto attach +if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then + tmux attach -t default || tmux new -s default +fi + ### PS1 # git-symbole: * unstaged, + staged, $ stashed, % untracked export GIT_PS1_SHOWUNTRACKEDFILES=1