mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Let the Nix shell prompt be overridden
This commit is contained in:
parent
a2ad38aa05
commit
c09ff05631
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user