From d16a9439843b1c849886d8edd4303e152372ea13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Sat, 18 Sep 2021 17:51:13 +0200 Subject: [PATCH] Only source additional zsh resources if files exist --- etc/skel/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 6692354..a4de8b7 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -112,5 +112,7 @@ if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then fi # HIGHLIGHTING -ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) -source /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 + ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +fi