aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zsh/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-05-06 14:07:13 -0500
committerToby Vincent <tobyv13@gmail.com>2023-05-06 14:07:13 -0500
commit218f78a84a3afbeef1dc30f7dea6d3ab8e76446f (patch)
treeb865e88dc324f5189fad87bc48a8d8eb24ea9f02 /zsh/.config
parentbbfd579b7aec2a3a6053da1e9c7204c9157f5e6c (diff)
fix(zsh): enable comments and fix highlighting
Diffstat (limited to 'zsh/.config')
-rw-r--r--zsh/.config/zsh/.zshrc1
-rw-r--r--zsh/.config/zsh/.zshrc.d/20-highlight.zsh5
2 files changed, 6 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 04c68e5..13e65dc 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -24,6 +24,7 @@ setopt HIST_IGNORE_SPACE
setopt HIST_VERIFY
setopt NONOMATCH
setopt CORRECT
+setopt INTERACTIVE_COMMENTS
bindkey -v
bindkey -m 2>/dev/null
diff --git a/zsh/.config/zsh/.zshrc.d/20-highlight.zsh b/zsh/.config/zsh/.zshrc.d/20-highlight.zsh
index a22a87d..6b2c6cf 100644
--- a/zsh/.config/zsh/.zshrc.d/20-highlight.zsh
+++ b/zsh/.config/zsh/.zshrc.d/20-highlight.zsh
@@ -2,3 +2,8 @@
# vim:ft=sh
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern line)
+
+# Make comments more visible
+# See: https://github.com/zsh-users/zsh-syntax-highlighting/issues/510
+typeset -A ZSH_HIGHLIGHT_STYLES
+export ZSH_HIGHLIGHT_STYLES[comment]='fg=8'