Files
nixos-blueprint/modules/home/programs/shell/fish.nix
unexplrd 1cdc75a57a updet
2025-02-27 17:16:25 +02:00

50 lines
929 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.shell.fish;
in {
options = {
shell.fish.enable =
mkEnableOption "enable fish";
};
config = mkIf cfg.enable {
programs = {
# atuin = {
# enable = true;
# flags = [
# "--disable-up-arrow"
# ];
# };
# };
eza.enable = true;
zoxide.enable = true;
keychain = {
enable = true;
keys = ["id_ed25519"];
extraFlags = [
"--quiet"
"--noask"
];
};
fish = {
enable = true;
shellAliases = {
cd = "z";
cat = "bat";
la = "ls -a";
l = "ls -la";
};
interactiveShellInit = ''
bind \e\[3\;5~ kill-word
bind \cH backward-kill-word
set fish_greeting
set fish_cursor_default block blink
'';
};
};
};
}