From b5205852ac22047e081535f45d0689b16aba641f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 21 Apr 2018 19:38:27 +0200 Subject: Show nix-shell presence in fish, add ls alias --- conf/fish.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'conf') diff --git a/conf/fish.nix b/conf/fish.nix index 8684595..75af413 100644 --- a/conf/fish.nix +++ b/conf/fish.nix @@ -43,6 +43,10 @@ echo -n -s 'λ ' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" + if test $IN_NIX_SHELL + echo -n -s ' (nix-shell)' + end + if test $last_status -gt 0 set_color $fish_color_cwd_root echo -n -s ' ● ' -- cgit v1.2.3