IntelliJ looks run $ZDOTDIR./.zshrc and $ZDOTDIR./.zlogin twice
Answered
I use IntelliJ IDEA integrated terminal.
When $ZDOTDIR is set as Environment value, zsh in integrated terminal invokes config files as below order.
- ~/.zsh/.zshrc
- ~/.zsh/.zprofile
- ~/.zsh/.zshrc
- ~/.zsh/.zlogin
- ~/.zsh/.zlogin
On the other hand, When $ZDOTDIR is set in .zshenv, invoke as below order.
- ~/.zshenv (here I set $ZDOTDIR=~/.zsh)
- ~/.zprofile
- ~/.zshrc
- ~/.zlogin
Both cases have problems. The first case zsh invokes .zshrc and .zlogin twice. In the second case zsh invokes HOME/.zshrc in spite of $ZDOTDIR is set in .zshenv.
How do my zsh invoke ~/.zsh/.zshrc only once?
Please sign in to leave a comment.
Related issues:
https://youtrack.jetbrains.com/issue/IDEA-182470
https://youtrack.jetbrains.com/issue/IDEA-182846