feat: add fish prompt nix shell indication, remove greeting, remove eza

This commit is contained in:
2026-04-10 20:17:40 -04:00
parent 89e652cdc1
commit 670abe43d6
+5 -9
View File
@@ -4,24 +4,20 @@
pkgs.nix-your-shell pkgs.nix-your-shell
pkgs.lolcat pkgs.lolcat
pkgs.kittysay pkgs.kittysay
pkgs.eza
]; ];
programs.fish = { programs.fish = {
enable = true; enable = true;
shellInit = '' shellInit = ''
set -g fish_key_bindings fish_vi_key_bindings
function fish_prompt 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 end
function fish_greeting 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 end
function nix-shell --description "Start an interactive shell based on a Nix expression" function nix-shell --description "Start an interactive shell based on a Nix expression"