Source .zshrc from user defined $ZDOTDIR (IDEA-162571)

This commit is contained in:
Dmitry Trofimov
2016-11-09 19:46:36 +01:00
parent bde9ee39c5
commit 474a92d837
3 changed files with 24 additions and 5 deletions

View File

@@ -52,7 +52,9 @@ class PyVirtualEnvTerminalCustomizer : LocalTerminalCustomizer() {
else {
//for other shells we read envs from activate script by the default shell and pass them to the process
val reader = PyVirtualEnvReader(path)
reader.activate?.let { envs.putAll(reader.readShellEnv()) }
reader.activate?.let {
envs.putAll(reader.readShellEnv().filterKeys { k -> k in arrayOf("PATH", "PS1", "VIRTUAL_ENV", "PYTHONHOME") })
}
}
}