fix: feat: add Homebrew fish support + make fish greeting date BSD compatible 🐟

This commit is contained in:
DannyDannyDanny 2025-09-11 14:42:41 +02:00
parent bf76b59f3c
commit a88286a64e

View file

@ -9,7 +9,7 @@
}; };
interactiveShellInit = '' interactiveShellInit = ''
fish_vi_key_bindings fish_vi_key_bindings
set fish_greeting 🐟: (set_color yellow; date +%T; set_color green; date --iso-8601; set_color normal) set fish_greeting 🐟: (set_color yellow; date +%T; set_color green; date --iso-8601 2>/dev/null; or date +%F; set_color normal)
# name: Default # name: Default
# author: Lily Ballard # author: Lily Ballard
@ -54,6 +54,12 @@
end end
''; '';
shellInit = ''
if test -d /opt/homebrew/bin
fish_add_path -g /opt/homebrew/bin /opt/homebrew/sbin
end
'';
}; };
programs.bash = { programs.bash = {