about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home-manager/zsh/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/home-manager/zsh/default.nix b/home-manager/zsh/default.nix
index f694b4a9..f05de847 100644
--- a/home-manager/zsh/default.nix
+++ b/home-manager/zsh/default.nix
@@ -1,6 +1,7 @@
 {
   config,
   pkgs,
+  lib,
   ...
 }: {
   programs.zsh = {
@@ -21,24 +22,23 @@
 
       path = "${config.xdg.dataHome}/zsh/history";
       save = 9000000; # number of lines to save
-      keep = 9000000; # number of lines to keep
+      size = 9000000; # number of lines to keep
       share = true; # share between sessions
-
-      hostorySubstringSearch = {
-        enable = true;
-        searchDownKey = "^[[B"; # DOWN Arrow key
-        searchUpKey = "^[[A"; # UP Arrow key
-      };
+    };
+    historySubstringSearch = {
+      enable = true;
+      searchDownKey = "^[[B"; # DOWN Arrow key
+      searchUpKey = "^[[A"; # UP Arrow key
     };
 
     loginExtra =
       builtins.readFile ./config/zsh-prompt.sh
-      + builtins.readFile ./config/custome_cursor
+      + builtins.readFile ./config/custom_cursor.sh
       + ''
         eval $(ssh-agent -s) > /dev/null # start ssh agent
         export ENHANCHED_NEOFETCH="$(pacman -Qn | wc -l) (pacman), $(pacman -Qm | wc -l) (aur), $(($(cargo install --list | wc -l ) / 2)) (cargo)"
       ''
-      + builtins.concatSepList "setopt" [
+      + lib.concatStringsSep "setopt" [
         "AUTO_CD"
         "AUTO_PUSHD"
         "CHASE_DOTS"
@@ -112,7 +112,7 @@
       BEMENU_OPTS = "--fn 'Source Code Pro 10' -c -l 30 -B 1 -W 0.9 --hf #ffffff";
 
       # Clean the home dir {{{
-      _JAVA_OPTIONS = builtins.concatSep " " [
+      _JAVA_OPTIONS = lib.concatStringsSep " " [
         ''-Djava.util.prefs.userRoot="${config.xdg.configHome}/java"''
         ''-Djavafx.cachedir="${config.xdg.cacheHome}/openjfx"''
       ];