Download shell-plugin/lib/highlight.zsh from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/shell-plugin/lib/highlight.zsh
- Command line
-
hf download hf://SaylorTwift/forgecode/shell-plugin/lib/highlight.zsh
-
curl -L -o highlight.zsh https://huggingface.co/SaylorTwift/forgecode/resolve/main/shell-plugin/lib/highlight.zsh
592 Bytes
| # Syntax highlighting configuration for forge commands | |
| # Style the conversation pattern with appropriate highlighting | |
| # Keywords in yellow, rest in default white | |
| # Style tagged files | |
| ZSH_HIGHLIGHT_PATTERNS+=('@\[[^]]#\]' 'fg=cyan,bold') | |
| # Highlight colon + command name (supports letters, numbers, hyphens, underscores) in yellow | |
| ZSH_HIGHLIGHT_PATTERNS+=('(#s):[a-zA-Z0-9_-]#' 'fg=yellow,bold') | |
| # Highlight everything after the command name + space in white | |
| ZSH_HIGHLIGHT_PATTERNS+=('(#s):[a-zA-Z0-9_-]# [[:graph:]]*' 'fg=white') | |
| ZSH_HIGHLIGHT_HIGHLIGHTERS+=(pattern) | |