From 5deae464920872ec575057eae6f2b9da401e43aa Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 16 Dec 2019 09:12:24 +0100 Subject: [PATCH] Silence tmux default startup. --- .bashrc.dotfiles | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc.dotfiles b/.bashrc.dotfiles index e94fa21..390dc3e 100644 --- a/.bashrc.dotfiles +++ b/.bashrc.dotfiles @@ -16,5 +16,9 @@ export JULIA_PROJECT=@. # Start tmux by default if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then - tmux attach -t default || tmux new -s default + if tmux ls | grep "default: " > /dev/null; then + tmux attach -t default + else + tmux new -s default + fi fi