From f114789dd7196dee130d449fce24a6b6ab751514 Mon Sep 17 00:00:00 2001 From: venus Date: Wed, 11 Mar 2026 22:37:58 -0500 Subject: [PATCH] added check for plugin scripts abs filepath --- zsh.config | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zsh.config b/zsh.config index ee6ba62..ca43dc1 100644 --- a/zsh.config +++ b/zsh.config @@ -73,11 +73,12 @@ bindkey -s '^[[1;5A' "!!^M" # autosuggestions # requires zsh-autosuggestions -source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh - -# syntax highlighting -# requires zsh-syntax-highlighting package -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +if [ -f "/usr/share/zsh/plugins " ]; then + source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh + # syntax highlighting + # requires zsh-syntax-highlighting package + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +fi #setup oh-my-posh shell if [ $TERM = "xterm-kitty" ] || [ $NVIM ]; then