mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
terminal: support ZDOTDIT changed in "Tools | Terminal" environment variables UI (IDEA-182470)
GitOrigin-RevId: 38a6cf98d69f161e76c7a925039e7a16d817177d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b37838c8f7
commit
e5fd38f81e
@@ -304,11 +304,11 @@ public class LocalTerminalDirectRunner extends AbstractTerminalRunner<PtyProcess
|
||||
setLoginShellEnv(envs, loginShell);
|
||||
}
|
||||
else if (shellName.equals(ZSH_NAME)) {
|
||||
String zdotdir = EnvironmentUtil.getEnvironmentMap().get(ZDOTDIR);
|
||||
String zdotdir = envs.get(ZDOTDIR);
|
||||
if (StringUtil.isNotEmpty(zdotdir)) {
|
||||
envs.put("_INTELLIJ_ORIGINAL_ZDOTDIR", zdotdir);
|
||||
}
|
||||
envs.put(ZDOTDIR, new File(rcFilePath).getParent());
|
||||
envs.put(ZDOTDIR, PathUtil.getParentPath(rcFilePath));
|
||||
}
|
||||
else if (shellName.equals(FISH_NAME)) {
|
||||
String xdgConfig = EnvironmentUtil.getEnvironmentMap().get(XDG_CONFIG_HOME);
|
||||
|
||||
Reference in New Issue
Block a user