config(zsh): disable zsh-syntax-highlighting for path and globbing

Also enable auto_cd option.
main
sudo pacman -Syu 2024-10-11 00:03:12 +07:00
parent 42ba369910
commit 1b681063f8
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,10 @@ export LESS="-RF -i -K -s -x2 --wordwrap"
# https://github.com/zsh-users/zsh-syntax-highlighting
if [[ -f /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]='none'
ZSH_HIGHLIGHT_STYLES[globbing]='none'
fi
# https://github.com/zsh-users/zsh-autosuggestions

View File

@ -12,6 +12,7 @@ export HISTSIZE=100000000
export SAVEHIST=$HISTSIZE
# https://zsh.sourceforge.io/Doc/Release/Options.html
setopt AUTO_CD
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS