summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-12-19 10:32:59 +0100
committerAdrian Kummerlaender2022-12-19 10:32:59 +0100
commit727601150741b1afcb964798fbc46e1c62e2b178 (patch)
tree5ed36fc8fad397058e766f1b1f015f4f62bccade
parent29dbbca232c6ea30fcb547a370784a6cfb9dfec2 (diff)
downloadnixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar.gz
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar.bz2
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar.lz
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar.xz
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.tar.zst
nixos_system-727601150741b1afcb964798fbc46e1c62e2b178.zip
Show flake env name in fish
-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