启动新窗口时如何让屏幕执行/加载 .zprofile?

Roy*_*ico 5 gnu-screen zsh

.zprofile启动新窗口时如何让屏幕执行/加载?

Kyl*_*nes 8

shell -zsh
Run Code Online (Sandbox Code Playgroud)

在您的 .screenrc 中,它会告诉screen将 zsh 作为登录 shell 启动,这反过来会导致 zsh 获取 ~/.zprofile 。