From 401e191ad0ad3059315f251ed3b62bd0809042c6 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 29 Nov 2017 04:12:04 +0100 Subject: [fish] only startx if we are not inside of ssh --- config/fish/config.fish | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/fish/config.fish b/config/fish/config.fish index 5394e19..873a027 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -109,8 +109,10 @@ if test (hostname) = "antares.uberspace.de" end end -#start xsession -if not set -q DISPLAY; and test "$XDG_VTNR" = "1" - startx ~/.xinitrc +#start xsession if we are not in ssh +if not set -q SSH_CLIENT or not set -q SSH_TTY + if not set -q DISPLAY; and test "$XDG_VTNR" = "1" + startx ~/.xinitrc + end end -- cgit v1.2.3