From 564a904181dae3a308684e3e39329beef8610d24 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 27 Jul 2023 12:35:55 +0700 Subject: [PATCH] chore(zsh): ignore builtin --- data/zsh/top-zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/zsh/top-zshrc b/data/zsh/top-zshrc index 0823349..43ba77e 100644 --- a/data/zsh/top-zshrc +++ b/data/zsh/top-zshrc @@ -1,7 +1,7 @@ # Put this on top of ~/.zshrc # https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell -export HISTORY_IGNORE="(ls|ll|la|cd|pwd|exit|builtin)" +export HISTORY_IGNORE="(ls|ll|la|cd|pwd|exit|builtin *)" export HISTSIZE=100000000 export SAVEHIST=$HISTSIZE @@ -35,6 +35,10 @@ DISABLE_UNTRACKED_FILES_DIRTY="true" # https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt typeset -g POWERLEVEL9K_INSTANT_PROMPT=off +# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy +typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 +typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE + # https://zellij.dev/documentation/integration.html if command -v zellij &>/dev/null; then ZELLIJ_AUTO_EXIT="true"