Skip to content

Commit 5dfa14c

Browse files
CopilotDRSDavidSoft
andcommitted
Avoid duplicating cmd.exe prompt definition
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
1 parent 4d259ba commit 5dfa14c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

vendor/init.bat

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,10 @@ goto :SKIP_CLINK
221221
chcp 65001>nul
222222

223223
:: Revert back to plain cmd.exe prompt without clink
224-
:: With Windows Terminal shell integration support (OSC 133 sequences)
225-
if defined WT_SESSION (
226-
prompt $e]133;D$e\$e]133;A$e\$e]9;9;$P$e\$E[1;32;49m$P$S$_$E[1;30;49mλ$S$E[0m$e]133;B$e\
227-
) else (
228-
prompt $E[1;32;49m$P$S$_$E[1;30;49mλ$S$E[0m
229-
)
224+
prompt $E[1;32;49m$P$S$_$E[1;30;49mλ$S$E[0m
225+
226+
:: Add Windows Terminal shell integration support (OSC 133 sequences)
227+
if defined WT_SESSION (prompt $e]133;D$e\$e]133;A$e\$e]9;9;$P$e\%PROMPT%$e]133;B$e\)
230228

231229
chcp %cp%>nul
232230

0 commit comments

Comments
 (0)