nixos/home/modules/shell/fish/default.nix
2026-02-22 19:33:10 +01:00

26 lines
575 B
Nix

{pkgs, ...}: {
home.file.".config/fish/aliases".source = ./aliases;
programs.fish = {
enable = true;
package = pkgs.fishMinimal;
shellInit = builtins.readFile ./config.fish;
shellAliases = {
nv = "nvim";
cls = "clear";
};
functions = {
__fish_command_not_found_handler = {
body = "__fish_default_command_not_found_handler $argv[1]";
onEvent = "fish_command_not_found";
};
fish_greeting = {
body = "";
};
gitignore = "curl -sL https://www.gitignore.io/api/$argv";
};
};
}