Commit ff77e26c by Niklas Kappel Committed by GitHub

send \r to fish when using poetry shell to execute source command (#7884)

parent c27142ff
......@@ -108,9 +108,11 @@ class Shell:
# Under ZSH the source command should be invoked in zsh's bash emulator
c.sendline(f"emulate bash -c '. {shlex.quote(str(activate_path))}'")
else:
c.sendline(
f"{self._get_source_command()} {shlex.quote(str(activate_path))}"
)
cmd = f"{self._get_source_command()} {shlex.quote(str(activate_path))}"
if self._name == "fish":
# Under fish "\r" should be sent explicitly
cmd += "\r"
c.sendline(cmd)
def resize(sig: Any, data: Any) -> None:
terminal = shutil.get_terminal_size()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment