aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/fish/config.fish8
1 files 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