From 670abe43d643ab50884c7de6883faf56a6001747 Mon Sep 17 00:00:00 2001 From: autumn-the-kitty-cat Date: Fri, 10 Apr 2026 20:17:40 -0400 Subject: [PATCH] feat: add fish prompt nix shell indication, remove greeting, remove eza --- home/pc/common/programs/fish.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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"