aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2024-01-26 11:42:50 +0100
committerMartin Polden <mpolden@mpolden.no>2024-01-26 11:45:57 +0100
commit2294ebfc5af701f8411860d46eaf183cc867708e (patch)
treedf80002c6dfecb82abbb15950b3d2288e055bf6c
parent488de25177f8c65c508015856990a9865b081b20 (diff)
zsh: do not colorize comments
-rw-r--r--zshrc6
1 files changed, 6 insertions, 0 deletions
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.