From eab0a3d17e0b2a2485c4973eacc4eb041990d026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 12 Nov 2021 17:51:07 +0300 Subject: zsh: make plugins work in Debian --- dotfiles/.config/zsh/.zshrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dotfiles/.config/zsh/.zshrc') diff --git a/dotfiles/.config/zsh/.zshrc b/dotfiles/.config/zsh/.zshrc index ad70614..a7f3000 100644 --- a/dotfiles/.config/zsh/.zshrc +++ b/dotfiles/.config/zsh/.zshrc @@ -71,5 +71,12 @@ zle -N zle-keymap-select [ -f "$HOME/.cache/colorscheme" ] && trap "source $HOME/.cache/colorscheme" DEBUG -[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] && +if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] +then + # Arch/Artix . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +elif [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] +then + # Debian + . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +fi -- cgit v1.2.3