File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ ignore the existing value of HISTFILE.
38
38
HISTFILE="{{ .HistoryFile }}"
39
39
{{- end }}
40
40
41
- # Prepend to the prompt to make it clear we're in a devbox shell.
42
- export PS1="(devbox) $PS1"
41
+ # If the user hasn't specified they want to handle the prompt themselves,
42
+ # prepend to the prompt to make it clear we're in a devbox shell.
43
+ if [ -z "$DEVBOX_NO_PROMPT" ]; then
44
+ export PS1="(devbox) $PS1"
45
+ fi
43
46
44
47
{{- if .ShellStartTime }}
45
48
# log that the shell is ready now!
Original file line number Diff line number Diff line change @@ -38,10 +38,13 @@ enough approximation for now.
38
38
set fish_history devbox
39
39
{{- end }}
40
40
41
- # Prepend to the prompt to make it clear we're in a devbox shell.
42
- functions -c fish_prompt __devbox_fish_prompt_orig
43
- function fish_prompt
44
- echo "(devbox)" (__devbox_fish_prompt_orig)
41
+ # If the user hasn't specified they want to handle the prompt themselves,
42
+ # prepend to the prompt to make it clear we're in a devbox shell.
43
+ if not set -q devbox_no_prompt
44
+ functions -c fish_prompt __devbox_fish_prompt_orig
45
+ function fish_prompt
46
+ echo "(devbox)" (__devbox_fish_prompt_orig)
47
+ end
45
48
end
46
49
47
50
{{- if .ShellStartTime }}
You can’t perform that action at this time.
0 commit comments