diff options
author | Adrian Kummerlaender | 2018-06-06 18:00:16 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-06-06 18:00:16 +0200 |
commit | f2836dff3bd1455e54c7fb88f77881cf942b191f (patch) | |
tree | 1f5ae84f115638f1dea1059c750603c9163006c8 | |
parent | f3ccae8c3e3d9143e5dbeac195396e31e5900b4e (diff) | |
download | nixos_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
-rw-r--r-- | conf/fish.nix | 6 |
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 |