bashrc exec tmux

This commit is contained in:
thek4n 2024-03-29 14:05:07 +03:00
parent 5464256578
commit 7942b79a61

View File

@ -2,6 +2,10 @@
# .bashrc by TheK4n # .bashrc by TheK4n
# https://github.com/TheK4n/dotfiles # 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 if [ -f "$HOME/.config/bash/sourcer" ]; then
source $HOME/.config/bash/sourcer source $HOME/.config/bash/sourcer
fi fi