mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 02:23:16 +00:00
af2007bb77
This commit adds a module for configuring atuin, a replacement shell history program. The module adds options for generating atuin's `config.toml` from Nix, and options to enable atuin's integration for bash and zsh (which will rebind history keys to open the atuin history).
32 lines
576 B
Nix
32 lines
576 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.atuin = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
db_path = "~/.atuin-history.db";
|
|
dialect = "us";
|
|
auto_sync = true;
|
|
search-mode = "fulltext";
|
|
};
|
|
};
|
|
|
|
test.stubs = {
|
|
atuin = { };
|
|
bash-preexec = { };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/atuin/config.toml \
|
|
${
|
|
builtins.toFile "example-settings-expected.toml" ''
|
|
auto_sync = true
|
|
db_path = "~/.atuin-history.db"
|
|
dialect = "us"
|
|
search-mode = "fulltext"
|
|
''
|
|
}
|
|
'';
|
|
}
|