Activate virtualenv in zsh via shell integration (IDEA-163063)
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 9 Nov 2016 18:48:14 +0000 (19:48 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 9 Nov 2016 18:48:14 +0000 (19:48 +0100)
python/python-terminal/src/com/jetbrains/python/sdk/PyVirtualEnvTerminalCustomizer.kt

index 4b2d5ff2da88d053cd0198ca62cdd5afb9907262..898db01029ea5034a842eb7c514cb3ac2464b9a0 100644 (file)
@@ -45,7 +45,7 @@ class PyVirtualEnvTerminalCustomizer : LocalTerminalCustomizer() {
         val shellPath = command[0]
         val shellName = File(shellPath).name
 
-        if (shellName == "bash" || (SystemInfo.isMac && shellName == "sh")) {
+        if (shellName == "bash" || (SystemInfo.isMac && shellName == "sh") || (shellName == "zsh")) {
           //for bash we pass activate script to jediterm shell integration (see jediterm-bash.in) to source it there
           findActivateScript(path, shellPath)?.let { activate -> envs.put("JEDITERM_SOURCE", activate) }
         }