mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Take ZDOTDIR value from EnvironmentUtil.getEnvironmentMap() (IDEA-162571)
This commit is contained in:
@@ -198,8 +198,9 @@ public class LocalTerminalDirectRunner extends AbstractTerminalRunner<PtyProcess
|
||||
addRcFileArgument(envs, command, result, rcFilePath, "--rcfile");
|
||||
}
|
||||
else if (shellName.equals("zsh")) {
|
||||
if (StringUtil.isNotEmpty(EnvironmentUtil.getEnvironmentMap().get(ZDOTDIR))) {
|
||||
File zshRc = new File(FileUtil.expandUserHome(envs.get(ZDOTDIR)), ".zshrc");
|
||||
String zdotdir = EnvironmentUtil.getEnvironmentMap().get(ZDOTDIR);
|
||||
if (StringUtil.isNotEmpty(zdotdir)) {
|
||||
File zshRc = new File(FileUtil.expandUserHome(zdotdir), ".zshrc");
|
||||
if (zshRc.exists()) {
|
||||
envs.put(JEDITERM_USER_RCFILE, zshRc.getAbsolutePath());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user