mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 17:59:39 +01:00
20 lines
575 B
Nix
20 lines
575 B
Nix
{
|
|
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 = ''
|
|
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$"
|
|
'';
|
|
}
|