nix-config/home/shell/fish.nix

32 lines
717 B
Nix
Raw Normal View History

2025-03-25 01:26:22 +01:00
{ pkgs, ...}:
2025-03-25 01:36:37 +01:00
let
font = "JetBrainsMono Nerd Font";
in
2025-03-25 01:26:22 +01:00
{
# Fix underlying System POSIX bugs
2025-03-25 01:40:24 +01:00
/* programs.bash = {
2025-03-25 01:26:22 +01:00
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
2025-03-25 01:40:24 +01:00
*/
2025-03-25 01:26:22 +01:00
programs.fish = {
enable = true;
interactiveShellInit = ''
fish_config prompt choose disco
function fish_greeting
fastfetch
echo (set_color yellow)(date +%T)(set_color normal) on $hostname
end
'';
};
}