这是我的完整 .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
)
Run Code Online (Sandbox Code Playgroud)
似乎只有当source $ZSH/oh-my-zsh.sh位于其他插件上方时,我的自定义插件才能工作,但所有其他插件(例如 osx)都停止工作。当我将它放在其余部分下面时,osx 可以工作,但 zsh-syntax-highlighting 和 zsh-autosuggestions 停止工作。