fork/home-manager
git clone https://git.julia.blue/fork/home-manager
9a2ce656
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7programs . zsh = { 8enable = true ; 9historySubstringSearch = { 10enable = true ; 11searchDownKey = "^[[B" ; 12searchUpKey = [ "^[[A" "\\eOA" ]; 13}; 14}; 15 16test . stubs . zsh = { }; 17 18# Written with regex to ensure we don't end up missing newlines in the future 19nmt . script = '' 20assertFileRegex home-files/.zshrc "^bindkey \"\^\[\[B\" history-substring-search-down $ " 21assertFileRegex home-files/.zshrc "^bindkey \"\^\[\[A\" history-substring-search-up $ " 22assertFileRegex home-files/.zshrc "^bindkey \"\\\\eOA\" history-substring-search-up $ " 23'' ; 24}; 25}