nixos/home/modules/shell/fish/default.nix
2026-02-27 23:44:37 +01:00

31 lines
788 B
Nix

{pkgs, ...}: {
home.file.".config/fish/aliases".source = ./aliases;
# note: grompt was installed manually, once grompt is available in nixpkgs,
# this will change.
home.file.".config/grompt.json".source = ./grompt.json;
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 = "";
};
fish_prompt = {
body = "grompt";
};
gitignore = "curl -sL https://www.gitignore.io/api/$argv";
};
};
}