diff --git a/bashprofile/.bashrc b/bashprofile/.bashrc index 1aeac67..304ceb0 100644 --- a/bashprofile/.bashrc +++ b/bashprofile/.bashrc @@ -135,7 +135,7 @@ export MANPAGER='nvim +Man!' test -r $HOME/.bashrc-local && . $HOME/.bashrc-local -if [ -z "$TMUX" ] +if [ -z "SUDO_USER" -a -z "$TMUX" ] then tmux attach-session -t default || tmux new-session -s default fi