oh-my-zsh 配置文件未加载 [英] oh-my-zsh config file not loading

查看:45
本文介绍了oh-my-zsh 配置文件未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让 ZSH 配置在 Mac OSX 上正常工作.我使用 curl 安装它: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh |sh.然后我修改了我的 zshrc 文件以满足我的需要.它只有在我运行 source ~/.zshrc 后才有效.但是,如果我回来打开一个新选项卡或新终端,我必须执行 source ~/.zshrc 以使配置设置再次工作.有没有人遇到过这个问题?我相信有一种方法可以做到这一点,所以我不必对每个新标签都做源 ~/.zshrc.

I am trying to get ZSH config working correctly on Mac OSX. I installed it using curl: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh. Then I modified my zshrc file to fit my needs. It works only after I run source ~/.zshrc. But then if I come back and open a new tab or new terminal I have to do source ~/.zshrc to get the config settings to work again. Has anybody ran into this issue? I believe there is a way to make it so I don't have to do source ~/.zshrc with every new tab.

推荐答案

我想通了.这是由于我的配置文件.未加载的 zsh 配置部分需要在插件加载后向下移动.移动后,一切都按预期工作.

I figured this out. It was due to my config file. The part of the zsh config that wasn't loading needed to be moved down after the plugins load. After moving that it all worked as expected.

这篇关于oh-my-zsh 配置文件未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆