From f3cb25f9bd99e3638107e77d073ee1612e16ea29 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Fri, 5 Jul 2024 22:23:02 -0300 Subject: [PATCH] radio: files: fish: Change fish_prompt function --- .../radio/files/.config/fish/functions/fish_prompt.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home-environments/radio/files/.config/fish/functions/fish_prompt.fish b/home-environments/radio/files/.config/fish/functions/fish_prompt.fish index 0bb7dea..4318a06 100644 --- a/home-environments/radio/files/.config/fish/functions/fish_prompt.fish +++ b/home-environments/radio/files/.config/fish/functions/fish_prompt.fish @@ -30,6 +30,8 @@ function fish_cwd_prompt printf "~/%s" (basename $cwd) case "/" printf "/%s" (basename $cwd) + case "/gnu/store" + printf "/gnu/store/%s" (basename $cwd) case "*" printf "%s/%s" (basename $parent_dir) (basename $cwd) end @@ -38,7 +40,7 @@ end # Guix environment prompt function fish_environment_prompt - normal "(env "; blue "%s" (basename $GUIX_ENVIRONMENT); normal ")" + normal "(env "; blue "%s" $GUIX_ENVIRONMENT; normal ")" end # Actual prompt