采购 ~/.zsh/env 和采购 ~/.zshrc 之间会发生什么?
我正在从 gnu screen 切换到 tmux,并且我观察到一种奇怪的行为,当我在 tmux 中创建新窗口时,我的 shell 挂起。如果我按 CTRL-C
,我可以终止挂起并进入 shell,但我想找出出了什么问题。
我已经对我的 zsh
配置进行了一些 echo
调试,并发现在获取 ~/.zsh/env
后发生了挂起(它不会挂在 ~/.zsh/env
中,我已经检查过了),但在 ~/.zshrc
被获取之前。我愿意进一步挖掘,但我不确定这两个步骤之间会发生什么。谁能告诉我,这样我就知道去哪里找?
I'm switching from gnu screen to tmux, and I'm observing a weird behaviour where my shell hangs when I create a new window in tmux. I can kill the hang and get to my shell if I hit CTRL-C
, but I want to find out what's going wrong.
I've done some echo
debugging of my zsh
configuration and figured out that the hang happens after ~/.zsh/env
is sourced (it doesn't hang w/in ~/.zsh/env
, I've checked that), but before ~/.zshrc
is sourced. I'm willing to dig further, but I'm not sure what happens between those two steps. Can anyone tell me, so I know where to look?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊哈,是
/etc/zprofile
导致了这个问题。我从man zsh
中找到了源文件的顺序。谢谢!Ah-ha, it's
/etc/zprofile
that's causing the issue. I found out fromman zsh
the order of the sourced files. Thanks!