From 23758b67d5332c5e363a9749e6b4c546d79b0433 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Fri, 5 May 2023 21:46:32 +0100 Subject: [PATCH] added auto startx on tty1 --- .config/fish/config.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2b0a5f0..ec487e3 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -2,6 +2,10 @@ if status is-interactive # Commands to run in interactive sessions can go here end +if status --is-login + [ "$(tty)" = "/dev/tty1" ] && exec startx -- -keeptty +end + fish_default_key_bindings set -gx EDITOR nvim