diff options
author | Martin Polden <mpolden@mpolden.no> | 2024-01-26 11:42:50 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2024-01-26 11:45:57 +0100 |
commit | 2294ebfc5af701f8411860d46eaf183cc867708e (patch) | |
tree | df80002c6dfecb82abbb15950b3d2288e055bf6c | |
parent | 488de25177f8c65c508015856990a9865b081b20 (diff) |
zsh: do not colorize comments
-rw-r--r-- | zshrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |