File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
internal/devbox/testdata/shellrc Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ export simple="value";
8
8
export space="quote me";
9
9
export special="\$\`\"\\";
10
10
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
13
16
14
17
# End Devbox Post-init Hook
15
18
Original file line number Diff line number Diff line change 2
2
3
3
4
4
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
7
10
8
11
# End Devbox Post-init Hook
9
12
You can’t perform that action at this time.
0 commit comments