From 0ddfa88ed9bba9c3556f802c6b1b5ac1bf0986af Mon Sep 17 00:00:00 2001 From: John Mertz Date: Tue, 23 Aug 2022 10:46:08 -0600 Subject: [PATCH] Don't run bash_login on SSH session --- bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bashrc b/bash/bashrc index 318c88860..2b95718d0 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -11,7 +11,7 @@ export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock # agetty is set to automatically log me in on tty1 # Automatically launch GUI on tty1 after login -if [ "$(tty)" == '/dev/tty1' ]; then +if [ "$(tty)" == '/dev/tty1' ] && [ ! $SSH_TTY ]; then . ${HOME}/.dotfiles/bash/bash_login LAST_GUI=`cat ${HOME}/.spool/last_login_gui 2>/dev/null` if [ -f "${HOME}/.spool/last_login_gui" ]; then