Skip to content

Commit

Permalink
Enable history scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Oct 5, 2024
1 parent 4889be0 commit 20e7684
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/home-manager/server/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
TEST = "12345";
};
history = {
# append = true;
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
};
autosuggestion.enable = true;
enableCompletion = true;
historySubstringSearch = {
enable = true;
searchDownKey = ["^[[B"];
searchUpKey = ["^[[A"];
searchDownKey = ["^[OB"];
searchUpKey = ["^[OA"];
};
syntaxHighlighting = {
enable = true;
Expand All @@ -58,10 +59,6 @@
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Up(A) and down(B) for history search
# bindkey '^[[A' history-substring-search-up
# bindkey '^[[B' history-substring-search-down
function get-pr-override() {
PR_NO=$1
HASH=$(curl -sL https://github.com/NixOS/nixpkgs/pull/''${PR_NO}.patch \
Expand Down

0 comments on commit 20e7684

Please sign in to comment.