From 1523b333e64effdf26279e75035062115947cf0f Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Fri, 6 Dec 2024 12:14:02 +0100 Subject: [PATCH] fix bachrc to load tmux correctly --- bash-config/.bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash-config/.bashrc b/bash-config/.bashrc index 1e43b08..355ab3f 100644 --- a/bash-config/.bashrc +++ b/bash-config/.bashrc @@ -1,4 +1,7 @@ -[ ! -z "$USE_TMUX_SHELL" ] && [[ -t 0 ]] && [ -z "$TMUX" ] && (exec tmux attach || exec tmux new-session && exit) +if [ ! -z "$USE_TMUX_SHELL" ] && [[ -t 0 ]] && [ -z "$TMUX" ]; then + tmux attach || tmux new-session + exit +fi alias update='sudo pacman -Syu --noconfirm'