Let the Nix shell prompt be overridden

This commit is contained in:
Elisha Hastings 2020-07-05 14:56:53 +01:00
parent a2ad38aa05
commit c09ff05631

View File

@ -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