diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-05-06 14:07:13 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-05-06 14:07:13 -0500 |
commit | 218f78a84a3afbeef1dc30f7dea6d3ab8e76446f (patch) | |
tree | b865e88dc324f5189fad87bc48a8d8eb24ea9f02 /zsh/.config | |
parent | bbfd579b7aec2a3a6053da1e9c7204c9157f5e6c (diff) |
fix(zsh): enable comments and fix highlighting
Diffstat (limited to 'zsh/.config')
-rw-r--r-- | zsh/.config/zsh/.zshrc | 1 | ||||
-rw-r--r-- | zsh/.config/zsh/.zshrc.d/20-highlight.zsh | 5 |
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' |