Don't run bash_login on SSH session

This commit is contained in:
John Mertz 2022-08-23 10:46:08 -06:00
parent b9acd4f227
commit 0ddfa88ed9
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
# agetty is set to automatically log me in on tty1 # agetty is set to automatically log me in on tty1
# Automatically launch GUI on tty1 after login # Automatically launch GUI on tty1 after login
if [ "$(tty)" == '/dev/tty1' ]; then if [ "$(tty)" == '/dev/tty1' ] && [ ! $SSH_TTY ]; then
. ${HOME}/.dotfiles/bash/bash_login . ${HOME}/.dotfiles/bash/bash_login
LAST_GUI=`cat ${HOME}/.spool/last_login_gui 2>/dev/null` LAST_GUI=`cat ${HOME}/.spool/last_login_gui 2>/dev/null`
if [ -f "${HOME}/.spool/last_login_gui" ]; then if [ -f "${HOME}/.spool/last_login_gui" ]; then