abra zsh config 2.0
This commit is contained in:
@@ -3,9 +3,11 @@ Syntax Highlighting
|
||||
|
||||
Integrates [zsh-syntax-highlighting][1] into Prezto.
|
||||
|
||||
This module should be loaded *second to last*, where last is the *prompt*
|
||||
module, unless used in conjuncture with the *history-substring-search* module
|
||||
where it must be loaded **before** it.
|
||||
This module should be loaded before the *prompt* module.
|
||||
|
||||
Additionally, if this module is used in conjunction with the
|
||||
*history-substring-search* module, this module must be loaded **before** the
|
||||
*history-substring-search* module.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
@@ -22,7 +24,9 @@ Settings
|
||||
To enable highlighting for this module only, add the following line to
|
||||
*zpreztorc*:
|
||||
|
||||
zstyle ':prezto:module:syntax-highlighting' color 'yes'
|
||||
```sh
|
||||
zstyle ':prezto:module:syntax-highlighting' color 'yes'
|
||||
```
|
||||
|
||||
### Highlighters
|
||||
|
||||
@@ -31,12 +35,15 @@ only enables the *main* highlighter by default.
|
||||
|
||||
To enable all highlighters, add the following to *zpreztorc*:
|
||||
|
||||
zstyle ':prezto:module:syntax-highlighting' highlighters \
|
||||
'main' \
|
||||
'brackets' \
|
||||
'pattern' \
|
||||
'cursor' \
|
||||
'root'
|
||||
```sh
|
||||
zstyle ':prezto:module:syntax-highlighting' highlighters \
|
||||
'main' \
|
||||
'brackets' \
|
||||
'pattern' \
|
||||
'line' \
|
||||
'cursor' \
|
||||
'root'
|
||||
```
|
||||
|
||||
### Highlighting Styles
|
||||
|
||||
@@ -45,10 +52,12 @@ Each syntax highlighter defines styles used to highlight tokens.
|
||||
To highlight, for example, builtins, commands, and functions in blue instead of
|
||||
green, add the following to *zpreztorc*:
|
||||
|
||||
zstyle ':prezto:module:syntax-highlighting' styles \
|
||||
'builtin' 'bg=blue' \
|
||||
'command' 'bg=blue' \
|
||||
'function' 'bg=blue'
|
||||
```sh
|
||||
zstyle ':prezto:module:syntax-highlighting' styles \
|
||||
'builtin' 'bg=blue' \
|
||||
'command' 'bg=blue' \
|
||||
'function' 'bg=blue'
|
||||
```
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
Reference in New Issue
Block a user