From f2836dff3bd1455e54c7fb88f77881cf942b191f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 6 Jun 2018 18:00:16 +0200 Subject: Show NIX_SHELL_NAME in fish prompt when applicable --- conf/fish.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3