2025-01-08 16:24:04 +01:00
|
|
|
{ ... }:
|
2023-04-29 16:53:09 +02:00
|
|
|
|
|
|
|
{
|
2025-01-08 16:24:04 +01:00
|
|
|
imports = [ ./zsh-stubs.nix ];
|
|
|
|
|
2023-04-29 16:53:09 +02:00
|
|
|
config = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
historySubstringSearch = {
|
|
|
|
enable = true;
|
|
|
|
searchDownKey = "^[[B";
|
|
|
|
searchUpKey = [ "^[[A" "\\eOA" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Written with regex to ensure we don't end up missing newlines in the future
|
|
|
|
nmt.script = ''
|
2023-10-10 19:09:38 +02:00
|
|
|
assertFileRegex home-files/.zshrc "^bindkey \"\^\[\[B\" history-substring-search-down$"
|
|
|
|
assertFileRegex home-files/.zshrc "^bindkey \"\^\[\[A\" history-substring-search-up$"
|
|
|
|
assertFileRegex home-files/.zshrc "^bindkey \"\\\\eOA\" history-substring-search-up$"
|
2023-04-29 16:53:09 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|