From 13a3b8b4d9b5c6ee509d8ce0e6cccc9c52be5927 Mon Sep 17 00:00:00 2001 From: daenikon Date: Fri, 10 May 2024 22:33:56 +0200 Subject: [PATCH] correct Gentoo and Arch Linux file path; correct Arch's repo name --- INSTALL.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 2e1286d..1e35d87 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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