about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-08-19 12:07:32 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-08-19 12:07:32 +0100
commite078ede0d11d25946d21e0e4b150e40a010c9163 (patch)
treef07c1e19aeb8dd82b2f6ea1adac98bd26134f56d /nix-conf/home
parent36cd27fcf76699f08ddff0ac6068a92af1b0dfff (diff)
downloaddotfiles-e078ede0d11d25946d21e0e4b150e40a010c9163.tar.gz
Improve zsh configuration
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/zsh.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 00c65d9..0006c20 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -34,10 +34,12 @@ in
     autosuggestion.enable = true;
     defaultKeymap = "emacs";
     history = {
-      size = 100000;
-      save = 100000;
       expireDuplicatesFirst = true;
+      save = 100000;
+      share = true;
+      size = 100000;
     };
+    historySubstringSearch.enable = true;
 
     profileExtra = ''
       [[ -f ~/.nix-profile/etc/profile.d/nix.sh ]] && . ~/.nix-profile/etc/profile.d/nix.sh
@@ -135,8 +137,6 @@ in
       eval "$(batpipe)"
       autopair-init
       enable-fzf-tab
-      bindkey '^[[A' history-substring-search-up
-      bindkey '^[[B' history-substring-search-down
 
       # make home and end work
       [[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
@@ -155,7 +155,8 @@ in
       # switch group using `,` and `.`
       zstyle ''\':fzf-tab:*''\' switch-group ''\',''\' ''\'.''\'
 
-      set -o noclobber append_history share_history
+      set -o noclobber
+      setopt APPEND_HISTORY
 
       # disable flow control (so that fzf-git.sh's ^g^s can work)
       stty -ixon