From 4f051a809e5a1b9f3c6e8c2ddc519970b1785e15 Mon Sep 17 00:00:00 2001 From: pika Date: Tue, 21 May 2024 19:56:38 +0200 Subject: [PATCH] minor changes --- functions/tools.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions/tools.fish b/functions/tools.fish index 17ce655..5c94049 100644 --- a/functions/tools.fish +++ b/functions/tools.fish @@ -2,3 +2,15 @@ function tools echo $TOOLBOX end + +function fish_prompt + set -l last_status $status + set -l status_symbol (if test $last_status -eq 0 + echo -n '[󰒐 ](fg:#53e67a)' + else + echo -n '[󰒑 ](fg:#d22863)' + end) + + echo -n (set_color normal) + printf "%s%s " $status_symbol (starship prompt) +end