From 4fce8202d47168875479cb1ddf9a93b76ef99788 Mon Sep 17 00:00:00 2001 From: pfych Date: Sun, 23 Mar 2025 12:03:45 +1100 Subject: [PATCH] FZF & Hist fixes --- .config/zsh/plugins.sh | 3 +++ .config/zsh/shared.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.config/zsh/plugins.sh b/.config/zsh/plugins.sh index 7d8af98..f37999a 100644 --- a/.config/zsh/plugins.sh +++ b/.config/zsh/plugins.sh @@ -7,6 +7,9 @@ source "$CONFIGDIR/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ZSH_AUTOSUGGEST_USE_ASYNC=true ZSH_AUTOSUGGEST_STRATEGY=(history completion) +# FZF +source <(fzf --zsh) + # Prompt configPrompt() { case $(uname -n) in diff --git a/.config/zsh/shared.sh b/.config/zsh/shared.sh index d13a7d1..62ba964 100644 --- a/.config/zsh/shared.sh +++ b/.config/zsh/shared.sh @@ -2,6 +2,10 @@ SAVEHIST=1000 HISTSIZE=1000 HISTFILE=~/.zsh_history +setopt hist_ignore_all_dups +setopt hist_ignore_space +setopt extendedglob +HISTORY_IGNORE='(git reset*|reboot|shutdown|exit|cd ..|cd ~|..|~|clear)' setopt SHARE_HISTORY setopt HIST_IGNORE_ALL_DUPS