diff --git a/home/pc/common/programs/fish.nix b/home/pc/common/programs/fish.nix index a833a5b..ca3fc36 100644 --- a/home/pc/common/programs/fish.nix +++ b/home/pc/common/programs/fish.nix @@ -4,24 +4,20 @@ pkgs.nix-your-shell pkgs.lolcat pkgs.kittysay - pkgs.eza ]; programs.fish = { enable = true; shellInit = '' - set -g fish_key_bindings fish_vi_key_bindings - function fish_prompt - string join ' ' -- (set_color magenta) $(prompt_pwd) :3 (set_color normal) + if test -z $IN_NIX_SHELL + printf '%s%s λ %s' (set_color magenta) $(prompt_pwd) (set_color normal) + else + printf '%s%s%s [nix-shell %s]%s λ%s ' (set_color magenta) $(prompt_pwd) (set_color yellow) $IN_NIX_SHELL (set_color magenta) (set_color normal) + end end function fish_greeting - echo hii autumn :3\nthe time is $(date +%T) | kittysay | lolcat - end - - function ls --description "List directory contents" - eza --icons=always $argv end function nix-shell --description "Start an interactive shell based on a Nix expression"