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