From 16ae88379412314f20d1122e81789ae9065ccab4 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 11 Jun 2022 14:15:25 +0200 Subject: [PATCH] tmux: autoattach in .bach_extra ausgelagert --- .bash_extra | 5 +++++ 1 file changed, 5 insertions(+) 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