Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 34f92a2

Browse files
committed
Make sure that no bash scripts override PS1, i.e. devspaces
1 parent e0a3c55 commit 34f92a2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • packages/jumpstarter/jumpstarter/common

packages/jumpstarter/jumpstarter/common/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ def launch_shell(host: str, context: str, allow: list[str], unsafe: bool) -> int
8989
allow: List of allowed drivers
9090
unsafe: Whether to allow drivers outside of the allow list
9191
"""
92+
cmd = [os.environ.get("SHELL", "bash")]
93+
if cmd[0].endswith("bash"):
94+
cmd.append("--norc")
95+
cmd.append("--noprofile")
96+
9297
process = Popen(
93-
[os.environ.get("SHELL", "bash")],
98+
cmd,
9499
stdin=sys.stdin,
95100
stdout=sys.stdout,
96101
stderr=sys.stderr,

0 commit comments

Comments
 (0)