mirror of
https://github.com/cmderdev/cmder.git
synced 2025-11-09 13:49:05 +08:00
Avoid duplicating cmd.exe prompt definition
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
This commit is contained in:
10
vendor/init.bat
vendored
10
vendor/init.bat
vendored
@@ -221,12 +221,10 @@ goto :SKIP_CLINK
|
|||||||
chcp 65001>nul
|
chcp 65001>nul
|
||||||
|
|
||||||
:: Revert back to plain cmd.exe prompt without clink
|
:: Revert back to plain cmd.exe prompt without clink
|
||||||
:: With Windows Terminal shell integration support (OSC 133 sequences)
|
prompt $E[1;32;49m$P$S$_$E[1;30;49mλ$S$E[0m
|
||||||
if defined WT_SESSION (
|
|
||||||
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\
|
:: Add Windows Terminal shell integration support (OSC 133 sequences)
|
||||||
) else (
|
if defined WT_SESSION (prompt $e]133;D$e\$e]133;A$e\$e]9;9;$P$e\%PROMPT%$e]133;B$e\)
|
||||||
prompt $E[1;32;49m$P$S$_$E[1;30;49mλ$S$E[0m
|
|
||||||
)
|
|
||||||
|
|
||||||
chcp %cp%>nul
|
chcp %cp%>nul
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user