summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-06-06 18:00:16 +0200
committerAdrian Kummerlaender2018-06-06 18:00:16 +0200
commitf2836dff3bd1455e54c7fb88f77881cf942b191f (patch)
tree1f5ae84f115638f1dea1059c750603c9163006c8 /conf
parentf3ccae8c3e3d9143e5dbeac195396e31e5900b4e (diff)
downloadnixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar.gz
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar.bz2
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar.lz
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar.xz
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.tar.zst
nixos_system-f2836dff3bd1455e54c7fb88f77881cf942b191f.zip
Show NIX_SHELL_NAME in fish prompt when applicable
Diffstat (limited to 'conf')
-rw-r--r--conf/fish.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf/fish.nix b/conf/fish.nix
index 0ea7348..6a654f5 100644
--- a/conf/fish.nix
+++ b/conf/fish.nix
@@ -45,7 +45,11 @@
echo -n -s 'λ ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal"
if test $IN_NIX_SHELL
- echo -n -s ' (nix-shell)'
+ if test $NIX_SHELL_NAME
+ echo -n -s ' (' $NIX_SHELL_NAME ')'
+ else
+ echo -n -s ' (nix-shell)'
+ end
end
if test $last_status -gt 0