From 09d6eff912830f6323775f41452a6e972d1bbe96 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Tue, 22 Feb 2022 10:13:15 +0100 Subject: [PATCH] Add icons to shell prompt --- fish/.config/fish/functions/fish_prompt.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish index f066079..3bae65e 100644 --- a/fish/.config/fish/functions/fish_prompt.fish +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -1,6 +1,10 @@ function __bcarlin_prompt_suffix set -l color_suffix - set -l suffix "➜" + set -l suffix "->" + + if test ! -z "$fish_private_mode" -a "$fish_private_mode" -eq 1 + set suffix "👻 $suffix" (set_color normal) + end switch $USER case root toor