nix-infra/modules/home/fish/default.nix

24 lines
495 B
Nix
Raw Normal View History

2024-05-04 10:03:59 +00:00
{ lib, ... }: {
options.cherrykitten.fish = {
enable = lib.mkEnableOption "Fish Shell";
} // { default = true; };
config = {
programs.fish = {
enable = true;
2024-03-24 18:02:33 +00:00
2024-05-04 10:03:59 +00:00
interactiveShellInit = ''
set -g fish_greeting
set -g fish_key_bindings fish_vi_key_bindings
2024-03-24 19:05:07 +00:00
2024-05-04 10:03:59 +00:00
set -x GPG_TTY (tty)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null
'';
2024-03-24 18:02:33 +00:00
2024-05-04 10:03:59 +00:00
shellAliases = {
g = "git";
};
2024-03-24 18:02:45 +00:00
};
2024-03-24 18:02:28 +00:00
};
}