atuin: Added

This commit is contained in:
Geoffrey Frogeye 2024-06-20 20:43:54 +02:00
parent ac43ef6548
commit 8909b2bfa3
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 22 additions and 1 deletions

19
hm/shell/atuin.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
{
config = {
programs.atuin = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = {
auto_sync = true;
sync_frequency = "5m";
sync_address = "https://atuin.frogeye.fr";
ctrl_n_shortcuts = true; # Cranberry uses Alt for i3
};
flags = [
"--disable-up-arrow"
];
};
};
}

View file

@ -14,7 +14,6 @@ in
historySize = 100000; historySize = 100000;
historyFile = "${config.xdg.stateHome}/shell_history"; historyFile = "${config.xdg.stateHome}/shell_history";
historyFileSize = 100000; historyFileSize = 100000;
# TODO Check out Atuin
historyControl = [ "erasedups" "ignoredups" "ignorespace" ]; historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
}; };
zsh = { zsh = {
@ -35,4 +34,7 @@ in
}; };
}; };
}; };
imports = [
./atuin.nix
];
} }