From ba3d8bc5f942bd92e262759ad9aba7f6567fa212 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 30 Apr 2023 20:41:39 -0400 Subject: [PATCH] fish: display right prompt even on SLIM --- src/.config/fish/functions/prompts.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/.config/fish/functions/prompts.fish b/src/.config/fish/functions/prompts.fish index 20b2452..d5ed70f 100644 --- a/src/.config/fish/functions/prompts.fish +++ b/src/.config/fish/functions/prompts.fish @@ -1,12 +1,12 @@ function fish_right_prompt - if test $SYSTEM_PROFILE != "DEFAULT" + if test $SYSTEM_PROFILE = "MINIMAL" return end set -l usercolor (set_color $fish_color_cwd) if command -sq cksum # randomised color for user/hostname based on disco.fish - set -l shas (echo $USER@$hostname | cksum | string split -f1 ' ' | math --base=hex | string sub -s 3 | string pad -c 0 -w 6 | string match -ra ..) + set -l shas (echo $USER$hostname | cksum | string split -f1 ' ' | math --base=hex | string sub -s 3 | string pad -c 0 -w 6 | string match -ra ..) set -l col 0x$shas[1..3] # ensure luminance is readable