From eeba8b2259d08dfacc97de51ebee97cba0cd633b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Tue, 17 Feb 2026 20:00:50 +0100 Subject: [PATCH] zsh: Better defaults --- zsh/.zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 3abf3c4..cf1d489 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -4,6 +4,11 @@ HISTSIZE=10000 SAVEHIST=10000 setopt autocd autopushd extendedglob nomatch notify pushdminus unsetopt beep +setopt HIST_IGNORE_DUPS # Don't record duplicate entries +setopt HIST_FIND_NO_DUPS # Don't show duplicates when searching +setopt HIST_REDUCE_BLANKS # Remove superfluous blanks +setopt INC_APPEND_HISTORY # Write to history immediately (not on exit) +setopt SHARE_HISTORY # Share history between sessions bindkey -v # End of lines configured by zsh-newuser-install # The following lines were added by compinstall @@ -19,7 +24,7 @@ autoload -Uz compinit compinit # End of lines added by compinstall -REPORTTIME=5 +REPORTTIME=1 #autoload -U colors #colors @@ -43,7 +48,7 @@ eval "$(fzf --zsh)" # tmux if [ -x "$(command -v tmux)" ] && [ -n "${DISPLAY}" ] && [ -z "${TMUX}" ] && [ -z "${NOTMUX}" ]; then - tmux || tmux >/dev/null 2>&1 + tmux new || tmux >/dev/null 2>&1 fi # key bindings according to https://wiki.archlinux.org/title/Zsh#Key_bindings