From 2294ebfc5af701f8411860d46eaf183cc867708e Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Fri, 26 Jan 2024 11:42:50 +0100 Subject: zsh: do not colorize comments --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index e3499b7..e2a9685 100644 --- a/zshrc +++ b/zshrc @@ -533,6 +533,12 @@ source "$HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.z source "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null || \ source "$HOME/.local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" 2> /dev/null +# Set highlight colors +if [[ -n "$ZSH_HIGHLIGHT_STYLES" ]]; then + # Do not colorize comments. Default is too dark + ZSH_HIGHLIGHT_STYLES[comment]="fg=none" +fi + # Load fzf keybindings and completion. E.g. C-r searches history using fzf. # Paths are tried in this order: Homebrew on macOS, dpkg on Debian and rpm on # Fedora. -- cgit v1.2.3