summaryrefslogtreecommitdiff
path: root/.config/shell/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/.zshrc')
-rw-r--r--.config/shell/.zshrc21
1 files changed, 16 insertions, 5 deletions
diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc
index 028b8b8..2ae7bd6 100644
--- a/.config/shell/.zshrc
+++ b/.config/shell/.zshrc
@@ -9,18 +9,27 @@ fpath=(/usr/share/zsh/site-functions $fpath)
# ─── 2) Shell behaviour ──────────────────────────────────────────────────────
autoload -Uz colors && colors
setopt auto_pushd
+setopt auto_param_slash
setopt no_check_jobs
setopt pushd_ignore_dups
setopt pushd_silent
setopt autocd
+setopt auto_menu
+setopt menu_complete
setopt interactive_comments
-stty stop undef
-stty -ixon
+setopt no_case_glob
+setopt no_case_match
unsetopt beep
+[[ -t 0 ]] && {
+ stty stop undef
+ stty -ixon
+}
zstyle ':completion:*' cache-path "${XDG_CACHE_HOME:-$HOME/.cache}/zsh/zcompcache"
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' use-cache on
+zstyle ':completion:*' special-dirs
+zstyle ':completion:*' squeeze-slashes
# ─── 3) Prompt ───────────────────────────────────────────────────────────────
local blue=$(tput setaf 34)
@@ -33,14 +42,16 @@ local reset=$(tput sgr0)
PS1="%{$blue%}%n%{$green%}@%{$cyan%}%m %{$lime%}%1~ %{$reset%}$ "
# ─── 4) History ──────────────────────────────────────────────────────────────
-HISTSIZE=10000000
-SAVEHIST=10000000
+HISTSIZE=100000
+SAVEHIST=100000
if [[ ! -d "${XDG_CACHE_HOME:-$HOME/.cache}/shell" ]]; then
mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/shell"
fi
HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/shell/history"
+setopt append_history
setopt inc_append_history
+setopt share_history
setopt hist_ignore_all_dups
setopt hist_find_no_dups
setopt hist_save_no_dups
@@ -90,7 +101,7 @@ else
fi
zstyle ':completion:*' menu select
zmodload zsh/complist
-_comp_options+=(globdots)
+_comp_options+=(globdots extended_glob)
# ─── 8) Keybindings ──────────────────────────────────────────────────────────
# Better backspace in vi mode