rampion
rampion

Reputation: 89053

What happens between sourcing ~/.zsh/env and sourcing ~/.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?

Upvotes: 1

Views: 1048

Answers (1)

rampion
rampion

Reputation: 89053

Ah-ha, it's /etc/zprofile that's causing the issue. I found out from man zsh the order of the sourced files. Thanks!

Upvotes: 1

Related Questions