Don't run bash_login on SSH session
This commit is contained in:
parent
b9acd4f227
commit
0ddfa88ed9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue