'Why are only certain plugins in zsh working while others aren't?

This is my full .zshrc:

export ZSH="/Users/butters/.oh-my-zsh"

source $ZSH/oh-my-zsh.sh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

plugins=(
    git
    bundler
    dotenv
    osx
    zake
    zsh-syntax-highlighting
    zsh-autosuggestions

)

It seems that only when source $ZSH/oh-my-zsh.sh is placed above the rest, my custom plugins work but all the other plugins such as osx stop working. When I placed it below the rest, osx works but zsh-syntax-highlighting and zsh-autosuggestions stop working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source