X-Git-Url: https://git.ganneff.de//index.cgi?p=zsh.git;a=blobdiff_plain;f=.zsh%2Fzsh-syntax-highlighting%2Fhighlighters%2Fpattern%2FREADME.md;h=5ff00e645182a877655be38487877cd6307520d8;hp=3ad5f247a69ae5087015eab57d275203fb0103e8;hb=edba7326676f58b8d8101138ddd9d4088d5c34c8;hpb=c830073c33bafc274c4e8756a0f892d05e69154a diff --git a/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md b/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md deleted file mode 100644 index 3ad5f24..0000000 --- a/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md +++ /dev/null @@ -1,19 +0,0 @@ -zsh-syntax-highlighting / highlighters / pattern ------------------------------------------------- - -This is the `pattern` highlighter, that highlights user-defined patterns. - - -### How to tweak it - -To use this highlighter, associate patterns with styles in the -`ZSH_HIGHLIGHT_PATTERNS` associative array, for example in `~/.zshrc`: - - # To have commands starting with `rm -rf` in red: - ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') - -The syntax for values is the same as the syntax of "types of highlighting" of -the zsh builtin `$zle_highlight` array, which is documented in [the `zshzle(1)` -manual page][zshzle-Character-Highlighting]. - -[zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting diff --git a/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md b/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md new file mode 120000 index 0000000..5ff00e6 --- /dev/null +++ b/.zsh/zsh-syntax-highlighting/highlighters/pattern/README.md @@ -0,0 +1 @@ +../../docs/highlighters/pattern.md \ No newline at end of file