From 2766ab58fb7f2abe6caa5fbf21b248944bb9c2fe Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 15 Jul 2024 15:32:57 +0200 Subject: [PATCH] feat(zsh.nix): adds old zsh options back --- modules/home/zsh.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index e0d4003..9977cd9 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -6,6 +6,7 @@ autocd = true; autosuggestion.enable = true; enableCompletion = true; + enableGlobalCompInit = true; localVariables = { # Looks like this: '~/some/path > ' @@ -17,8 +18,30 @@ LANG = "en_US.UTF-8"; ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=#808080"; ZSH_AUTOSUGGEST_USE_ASYNC = 1; + HISTSIZE = 100000; + SAVEHIST = 100000; + HISTFILE = "~/.zsh_history"; + HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE = 1; }; + setOptions = [ + # Corrections + "CORRECT" + + # History stuff + "APPEND_HISTORY" + "INC_APPEND_HOSTORY" + "SHARE_HISTORY" + "EXTENDED_HISTORY" + "HIST_REDUCT_BLANKS" + "HIST_IGNORE_SPACE" + + # Disable annoying beep + "NO_BEEP" + # Fix comments + "INTERACTIVE_COMMENTS" + ]; + shellAliases = { ls = "eza -lh --git"; la = "eza -A --git";