From 7942b79a6171ca099a876ed71045b94d14129394 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 29 Mar 2024 14:05:07 +0300 Subject: [PATCH] bashrc exec tmux --- home/user/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/user/.bashrc b/home/user/.bashrc index 873e2c8..00eaec8 100644 --- a/home/user/.bashrc +++ b/home/user/.bashrc @@ -2,6 +2,10 @@ # .bashrc by TheK4n # https://github.com/TheK4n/dotfiles +if command -v tmux &>/dev/null && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ] && [ "$(tty)" != "/dev/tty3" ] && [[ -z "$SSH_CLIENT" ]]; then + exec tmux +fi + if [ -f "$HOME/.config/bash/sourcer" ]; then source $HOME/.config/bash/sourcer -fi +fi \ No newline at end of file