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