From c09ff05631637faae59cb81ade52a2fa96098b60 Mon Sep 17 00:00:00 2001 From: Elisha Hastings <5149755+tshakah@users.noreply.github.com> Date: Sun, 5 Jul 2020 14:56:53 +0100 Subject: [PATCH] Let the Nix shell prompt be overridden --- fish_prompt.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 4c47f7f..bc4e736 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -868,8 +868,9 @@ function __bobthefish_prompt_nix -S -d 'Display current nix environment' [ "$theme_display_nix" = 'no' -o -z "$IN_NIX_SHELL" ] and return + set -q NIX_SHELL_PROMPT; or set NIX_SHELL_PROMPT $IN_NIX_SHELL __bobthefish_start_segment $color_nix - echo -ns $nix_glyph $IN_NIX_SHELL ' ' + echo -ns $nix_glyph $NIX_SHELL_PROMPT ' ' set_color normal end