aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-12 17:51:07 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-11-12 17:51:07 +0300
commiteab0a3d17e0b2a2485c4973eacc4eb041990d026 (patch)
tree24c079d7680df6577282657147e2c10fa4b4ea22 /dotfiles/.config/zsh/.zshrc
parente1f418a003287fb07b3c8a984995b8f1f2ba3cd5 (diff)
downloadswayrice-eab0a3d17e0b2a2485c4973eacc4eb041990d026.tar.gz
swayrice-eab0a3d17e0b2a2485c4973eacc4eb041990d026.zip
zsh: make plugins work in Debian
Diffstat (limited to 'dotfiles/.config/zsh/.zshrc')
-rw-r--r--dotfiles/.config/zsh/.zshrc9
1 files changed, 8 insertions, 1 deletions
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