From 727601150741b1afcb964798fbc46e1c62e2b178 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 19 Dec 2022 10:32:59 +0100 Subject: Show flake env name in fish --- fish.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish.nix b/fish.nix index 935910e..4253b11 100644 --- a/fish.nix +++ b/fish.nix @@ -55,8 +55,8 @@ echo -n -s 'λ ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" if test $IN_NIX_SHELL - if test $NIX_SHELL_NAME - echo -n -s ' (' $NIX_SHELL_NAME ')' + if test $name + echo -n -s ' (' $name ')' else echo -n -s ' (nix-shell)' end -- cgit v1.2.3