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