Restore the original value of ZDOTDIR (IDEA-163404)
[idea/community.git] / plugins / terminal / src / org / jetbrains / plugins / terminal / LocalTerminalDirectRunner.java
index ed90427205f4b89f036bd40ec8637a0b1cc5942c..e662327d989ba0be0b6a7a7cc4a8a2b1f3fcfbcc 100644 (file)
@@ -201,6 +201,7 @@ public class LocalTerminalDirectRunner extends AbstractTerminalRunner<PtyProcess
           else if (shellName.equals("zsh")) {
             String zdotdir = EnvironmentUtil.getEnvironmentMap().get(ZDOTDIR);
             if (StringUtil.isNotEmpty(zdotdir)) {
+              envs.put("_OLD_ZDOTDIR", zdotdir);
               File zshRc = new File(FileUtil.expandUserHome(zdotdir), ".zshrc");
               if (zshRc.exists()) {
                 envs.put(JEDITERM_USER_RCFILE, zshRc.getAbsolutePath());