summaryrefslogtreecommitdiff
path: root/.config/shell/.zshrc
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-02-07 15:22:40 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-02-07 15:22:40 +0100
commit6b8a7509fe55ab3d70506a17d2b03560d73388d6 (patch)
tree8dee9a7ebd9402685e89836ddc594dd57bd4ab7b /.config/shell/.zshrc
parent1366ab975159e57a0ebd2bdd76d8c8bf26c77f19 (diff)
downloaddotfiles-6b8a7509fe55ab3d70506a17d2b03560d73388d6.tar.gz
dotfiles-6b8a7509fe55ab3d70506a17d2b03560d73388d6.tar.bz2
dotfiles-6b8a7509fe55ab3d70506a17d2b03560d73388d6.zip
new stuff
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