mirror of
https://github.com/nix-community/home-manager
synced 2024-08-23 20:46:31 +02:00
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).
21 lines
306 B
Nix
21 lines
306 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs = {
|
|
atuin.enable = true;
|
|
zsh.enable = true;
|
|
};
|
|
|
|
test.stubs = {
|
|
atuin = { };
|
|
bash-preexec = { };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshrc
|
|
assertFileContains \
|
|
home-files/.zshrc \
|
|
'eval "$(@atuin@/bin/atuin init zsh)"'
|
|
'';
|
|
}
|