Skip to content

Commit 30acd27

Browse files
committed
Fix tests.
1 parent b3c00b7 commit 30acd27

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

internal/devbox/testdata/shellrc/basic/shellrc.golden

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ export simple="value";
88
export space="quote me";
99
export special="\$\`\"\\";
1010

11-
# Prepend to the prompt to make it clear we're in a devbox shell.
12-
export PS1="(devbox) $PS1"
11+
# If the user hasn't specified they want to handle the prompt themselves,
12+
# prepend to the prompt to make it clear we're in a devbox shell.
13+
if [ -z "$DEVBOX_NO_PROMPT" ]; then
14+
export PS1="(devbox) $PS1"
15+
fi
1316

1417
# End Devbox Post-init Hook
1518

internal/devbox/testdata/shellrc/noshellrc/shellrc.golden

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33

44

5-
# Prepend to the prompt to make it clear we're in a devbox shell.
6-
export PS1="(devbox) $PS1"
5+
# If the user hasn't specified they want to handle the prompt themselves,
6+
# prepend to the prompt to make it clear we're in a devbox shell.
7+
if [ -z "$DEVBOX_NO_PROMPT" ]; then
8+
export PS1="(devbox) $PS1"
9+
fi
710

811
# End Devbox Post-init Hook
912

0 commit comments

Comments
 (0)