Skip to content

Commit a75ac25

Browse files
committed
Use it
1 parent b361bbc commit a75ac25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conda_spawn/shell.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _sigwinch_passthrough(sig, data):
140140
# We set the PS1 prompt outside the script because it's otherwise invisible.
141141
# stty echo is equivalent to `child.setecho(True)` but the latter didn't work
142142
# reliably across all shells and OSs.
143-
child.sendline(f' source "{f.name}" && {self.prompt()} && stty echo')
143+
child.sendline(f' . "{f.name}" && {self.prompt()} && stty echo')
144144
os.read(child.child_fd, 4096) # consume buffer before interact
145145
if Path(executable).name == "zsh":
146146
# zsh also needs this for a truly silent activation
@@ -165,6 +165,8 @@ def executable(self):
165165

166166

167167
class ShellShell(PosixShell):
168+
Activator = activate.ShellActivator
169+
168170
def executable(self):
169171
return "shell"
170172

0 commit comments

Comments
 (0)