From ebf3e773c6fdee19a1538e3afb66ad4e33766918 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Sat, 11 Jul 2026 18:04:48 +0100 Subject: [PATCH] Fix fish startup code --- home/fish/interactive.fish | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/home/fish/interactive.fish b/home/fish/interactive.fish index fb6b35f..d09c9bf 100644 --- a/home/fish/interactive.fish +++ b/home/fish/interactive.fish @@ -1,12 +1,10 @@ -if test (tty) = /dev/tty1; and test -z "$DISPLAY"; and test -z "$WAYLAND_DISPLAY" +if test (tty) = /dev/tty1; and type -q startx; and test -z "$DISPLAY"; and test -z "$WAYLAND_DISPLAY" exec startx end -if test "$KITTY_STR" = "1" - if not set -q _FASTFETCH_RUN - set -gx _FASTFETCH_RUN 1 - fastfetch - end +if test "$KITTY_STR" = "1"; and not set -q _FASTFETCH_RUN + set -gx _FASTFETCH_RUN 1 + fastfetch end function postexec_test --on-event fish_postexec