Compare commits

...

3 Commits

Author SHA1 Message Date
Denys Kondratiuk c253a9986b
Merge 13a3b8b4d9 into c4d9559184 2026-08-07 21:14:20 +02:00
Colin Kinloch c4d9559184 main: Add systemd run0 equivalent to sudo 2026-08-07 12:11:51 -07:00
daenikon 13a3b8b4d9 correct Gentoo and Arch Linux file path; correct Arch's repo name 2024-05-10 22:33:56 +02:00
2 changed files with 15 additions and 2 deletions

View File

@ -5,7 +5,7 @@ How to install
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])
* 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])
@ -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:
* On most Linux distributions (except perhaps NixOS):
* On most Linux distributions (except Gentoo, Arch Linux, and perhaps NixOS):
```zsh
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:
```zsh

View File

@ -354,6 +354,7 @@ _zsh_highlight_highlighter_main_paint()
'pkexec' '' # doesn't take short options; immune to #121 because it's usually not passed --option flags
# Not listed: -h, which has two different meanings.
'sudo' Cgprtu:AEHPSbilns:eKkVv # as of sudo 1.8.21p2
'run0' ugD:h # systemd 256.6
'stdbuf' ioe:
'eatmydata' ''
'catchsegv' ''