Skip to content

Commit

Permalink
config(zsh): disable zsh-syntax-highlighting for path and globbing
Browse files Browse the repository at this point in the history
Also enable auto_cd option.
  • Loading branch information
haunt98 committed Oct 10, 2024
1 parent 42ba369 commit 1b68106
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/zsh/bottom-zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions data/zsh/top-zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b68106

Please sign in to comment.