mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Add some phrases for readability and clarity
This commit is contained in:
parent
471b46312f
commit
e2aba7974e
@ -15,12 +15,13 @@ typeset -A ZSH_HIGHLIGHT_REGEXP
|
|||||||
ZSH_HIGHLIGHT_REGEXP+=('^rm .*' fg="red",bold)
|
ZSH_HIGHLIGHT_REGEXP+=('^rm .*' fg="red",bold)
|
||||||
```
|
```
|
||||||
|
|
||||||
This will highlight the whole line starting with `rm` (for all operating systems,
|
This will highlight the whole line starting with `rm` command (for all
|
||||||
in contrast to the below example).
|
operating systems, in contrast to the below example).
|
||||||
|
|
||||||
Some regex patterns are [subject to the host platform][MAN_ZSH_REGEX], especially
|
Some regular expressions are [subject to the host platform][MAN_ZSH_REGEX],
|
||||||
the kernel. To highlight `sudo` only as a complete word, i.e., `sudo cmd`, but
|
especially the kernel. To highlight `sudo` only as a complete word, i.e.,
|
||||||
not `sudoedit`:
|
`sudo cmd`, but not `sudoedit`, the respective regular expressions for the host
|
||||||
|
systems would be:
|
||||||
|
|
||||||
* GNU-Linux
|
* GNU-Linux
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user