summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish.nix4
1 files 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