Compare commits
3 Commits
c4d2328ed4
...
3c35877772
| Author | SHA1 | Date |
|---|---|---|
|
|
3c35877772 | |
|
|
1d85c69261 | |
|
|
13a3b8b4d9 |
16
INSTALL.md
16
INSTALL.md
|
|
@ -5,7 +5,7 @@ How to install
|
||||||
|
|
||||||
First, install the package:
|
First, install the package:
|
||||||
|
|
||||||
* Arch Linux: [community/zsh-syntax-highlighting][arch-package] / [AUR/zsh-syntax-highlighting-git][AUR-package]
|
* Arch Linux: [Extra/zsh-syntax-highlighting][arch-package] / [AUR/zsh-syntax-highlighting-git][AUR-package]
|
||||||
* Debian: `zsh-syntax-highlighting` package [in `stretch`][debian-package] (or in [OBS repository][obs-repository])
|
* Debian: `zsh-syntax-highlighting` package [in `stretch`][debian-package] (or in [OBS repository][obs-repository])
|
||||||
* Fedora: [zsh-syntax-highlighting package][fedora-package-alt] in Fedora 24+ (or in [OBS repository][obs-repository])
|
* Fedora: [zsh-syntax-highlighting package][fedora-package-alt] in Fedora 24+ (or in [OBS repository][obs-repository])
|
||||||
* FreeBSD: `pkg install zsh-syntax-highlighting` (port name: [`shells/zsh-syntax-highlighting`][freebsd-port])
|
* FreeBSD: `pkg install zsh-syntax-highlighting` (port name: [`shells/zsh-syntax-highlighting`][freebsd-port])
|
||||||
|
|
@ -36,12 +36,24 @@ See also [repology's cross-distro index](https://repology.org/metapackage/zsh-sy
|
||||||
|
|
||||||
Second, enable zsh-syntax-highlighting by sourcing the script. Running this command on the terminal will add the source line to the end of your .zshrc:
|
Second, enable zsh-syntax-highlighting by sourcing the script. Running this command on the terminal will add the source line to the end of your .zshrc:
|
||||||
|
|
||||||
* On most Linux distributions (except perhaps NixOS):
|
* On most Linux distributions (except Gentoo, Arch Linux, and perhaps NixOS):
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Gentoo:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
echo "source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||||
|
```
|
||||||
|
|
||||||
|
* Arch Linux
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
echo "source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
|
||||||
|
```
|
||||||
|
|
||||||
* NetBSD and OpenBSD:
|
* NetBSD and OpenBSD:
|
||||||
|
|
||||||
```zsh
|
```zsh
|
||||||
|
|
|
||||||
|
|
@ -372,6 +372,7 @@ _zsh_highlight_highlighter_main_paint()
|
||||||
'grc' :se # grc - a "generic colouriser" (that's their spelling, not mine)
|
'grc' :se # grc - a "generic colouriser" (that's their spelling, not mine)
|
||||||
'cpulimit' elp:ivz # cpulimit 0.2
|
'cpulimit' elp:ivz # cpulimit 0.2
|
||||||
'ktrace' fgpt:aBCcdiT
|
'ktrace' fgpt:aBCcdiT
|
||||||
|
'caffeinate' tw:dimsu # as of macOS's caffeinate(8) dated November 9, 2012
|
||||||
)
|
)
|
||||||
# Commands that would need to skip one positional argument:
|
# Commands that would need to skip one positional argument:
|
||||||
# flock
|
# flock
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue