docs: Move docs into docs/

This commit is contained in:
Matthew Martin
2015-11-17 21:11:09 -06:00
parent 35e0b0ca69
commit 0ab450ae47
14 changed files with 229 additions and 222 deletions

20
docs/highlighters/root.md Normal file
View File

@@ -0,0 +1,20 @@
zsh-syntax-highlighting / highlighters / root
---------------------------------------------
This is the `root` highlighter, that highlights the whole line if the current
user is root.
### How to tweak it
This highlighter defines the following styles:
* `root` - the style for the whole line if the current user is root.
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`,
for example in `~/.zshrc`:
ZSH_HIGHLIGHT_STYLES[root]='bg=red'
The syntax for declaring styles is documented in [the `zshzle(1)` manual
page](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).