2023-04-29 07:53:09 -07:00
|
|
|
{
|
2025-01-31 21:24:47 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
historySubstringSearch = {
|
2023-04-29 07:53:09 -07:00
|
|
|
enable = true;
|
2025-01-31 21:24:47 +01:00
|
|
|
searchDownKey = "^[[B";
|
|
|
|
searchUpKey = [ "^[[A" "\\eOA" ];
|
2023-04-29 07:53:09 -07:00
|
|
|
};
|
|
|
|
};
|
2025-01-31 21:24:47 +01:00
|
|
|
|
|
|
|
# Written with regex to ensure we don't end up missing newlines in the future
|
|
|
|
nmt.script = ''
|
|
|
|
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 07:53:09 -07:00
|
|
|
}
|