2024-05-07 03:23:55 -04:00
|
|
|
{pkgs, ...}:
|
|
|
|
with pkgs; {
|
|
|
|
programs = {
|
|
|
|
fish = let
|
2024-08-21 01:05:38 -04:00
|
|
|
mkFishPlugin = sources: {
|
|
|
|
inherit (sources) src;
|
|
|
|
name = sources.pname;
|
|
|
|
};
|
|
|
|
|
|
|
|
sources = import ../../../_sources/generated.nix {inherit (pkgs) fetchFromGitHub;};
|
|
|
|
|
|
|
|
extraPlugins = lib.attrsets.mapAttrsToList (_: value: mkFishPlugin value) sources;
|
|
|
|
|
2024-05-07 03:23:55 -04:00
|
|
|
mkFishPlugins = names:
|
|
|
|
map (name: {
|
|
|
|
inherit name;
|
|
|
|
src = pkgs.fishPlugins.${name}.src;
|
|
|
|
})
|
|
|
|
names;
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
plugins =
|
2024-08-21 01:05:38 -04:00
|
|
|
extraPlugins
|
2024-08-14 01:39:04 -04:00
|
|
|
++ (mkFishPlugins ["autopair" "bass" "colored-man-pages" "done" "fifc" "forgit" "grc"]);
|
2024-05-07 03:23:55 -04:00
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
cat = "${bat}/bin/bat";
|
|
|
|
df = "${duf}/bin/duf";
|
|
|
|
rm = "${rm-improved}/bin/rip";
|
|
|
|
cp = "${xcp}/bin/xcp";
|
|
|
|
};
|
|
|
|
|
|
|
|
interactiveShellInit = ''
|
|
|
|
function fish_greeting
|
|
|
|
macchina
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
starship = {
|
|
|
|
enable = true;
|
2024-05-16 02:40:39 -04:00
|
|
|
catppuccin.enable = true;
|
2024-05-07 03:23:55 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|