From 91d650025a87ee2459a30ae2f252ecf4791c68f4 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 30 May 2025 14:53:00 -0700 Subject: [PATCH] shell(colors): don't set colors when running inside a known terminal emulator --- .config/shell/colors.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.config/shell/colors.sh b/.config/shell/colors.sh index f8f7687..5fc0185 100644 --- a/.config/shell/colors.sh +++ b/.config/shell/colors.sh @@ -1,4 +1,15 @@ #!/bin/sh + +# check if we're running inside a terminal that already has a color scheme configured for it +if : || + [ "${KITTY_PID:+true}" = true ] || + [ "${ALACRITTY_WINDOW_ID:+true}" = true ] +then + # we are running inside a terminal emulator that has a color config provided + # by these dotfiles, so we don't need to provide our own + return +fi + # base16-shell (https://github.com/chriskempson/base16-shell) # Base16 Shell template by Chris Kempson (http://chriskempson.com) COLOR_SCHEME="${COLOR_SCHEME:-onedark}"