From 5aa0d136887a363115ba1aeb849c9dbc46509c1b Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Fri, 13 Feb 2026 09:17:09 -0600 Subject: [PATCH] Improve zsh completion, history, and shell options Add menu-select and case-insensitive tab completion, increase history size to 50000 with dedup and cross-session sharing, enable useful shell options (CORRECT, INTERACTIVE_COMMENTS, EXTENDED_GLOB, AUTO_CD), and fix $home typo in PATH. --- .zshrc | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index d9773a9..01c4a54 100644 --- a/.zshrc +++ b/.zshrc @@ -1,10 +1,26 @@ autoload -Uz compinit compinit -HISTFILE="$HOME/.zsh_history" -HISTSIZE=10000 -SAVEHIST=10000 -export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$home/.local/bin:$PATH" +# Completion settings. +zstyle ':completion:*' menu select +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + +# History settings. +HISTFILE="$HOME/.zsh_history" +HISTSIZE=50000 +SAVEHIST=50000 +setopt HIST_IGNORE_ALL_DUPS +setopt HIST_REDUCE_BLANKS +setopt SHARE_HISTORY +setopt HIST_IGNORE_SPACE + +# Shell options. +setopt CORRECT +setopt INTERACTIVE_COMMENTS +setopt EXTENDED_GLOB +setopt AUTO_CD + +export PATH="/usr/local/ubin:$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH" export EDITOR="vim" export TERMINAL="konsole" export BROWSER="firefox"