From 92d502d1ac0eaf83e07062c254aa37454e7711dd Mon Sep 17 00:00:00 2001 From: Nikos Papadakis Date: Mon, 2 Oct 2023 13:58:02 +0300 Subject: [PATCH] fish --- fish/functions/fish_prompt.fish | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish index 8b1d19c..3750f81 100644 --- a/fish/functions/fish_prompt.fish +++ b/fish/functions/fish_prompt.fish @@ -86,5 +86,10 @@ function fish_prompt end end - echo -n -s $arrow ' '$cwd $repo_info $normal ' ' + set -l nix_info + if [ -n "$IN_NIX_SHELL" ] + set nix_info "$yellow (in nix shell)" + end + + echo -n -s $arrow ' ' $cwd $nix_info $repo_info $normal ' ' end