Last active
May 15, 2026 23:31
-
-
Save cumulus13/2cb7535bebb65519fcd4118bb6d83486 to your computer and use it in GitHub Desktop.
MyWindowsPrompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%~1"=="" goto usage | |
| if "%~1"=="1" goto vertical | |
| if "%~1"=="2" goto multiline | |
| goto usage | |
| :vertical | |
| prompt $e[38;2;0;255;255m[%time: =0%]$e[0m $e[38;2;120;255;120m$p$e[0m$e[38;2;255;200;0m ^>^> $e[0m | |
| reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1 /f >nul | |
| reg add "HKCU\Software\Microsoft\Command Processor" ^ | |
| /v AutoRun ^ | |
| /t REG_SZ ^ | |
| /d "prompt $e[38;2;0;255;255m[%time: =0%]$e[0m $e[38;2;120;255;120m$p$e[0m$e[38;2;255;200;0m ^>^> $e[0m" ^ | |
| /f >nul | |
| echo. | |
| echo Vertical prompt installed permanently. | |
| goto end | |
| :multiline | |
| prompt $e[38;2;0;255;255m[%date% %time: =0%]$e[0m$_$e[38;2;255;255;0m[%USERNAME%@%COMPUTERNAME%]$e[0m $e[38;2;120;255;120m$p$e[0m$e[38;2;255;200;0m ^>^> $e[0m | |
| reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1 /f >nul | |
| reg add "HKCU\Software\Microsoft\Command Processor" ^ | |
| /v AutoRun ^ | |
| /t REG_SZ ^ | |
| /d "prompt $e[38;2;0;255;255m[%date% %time: =0%]$e[0m$_$e[38;2;255;255;0m[%USERNAME%@%COMPUTERNAME%]$e[0m $e[38;2;120;255;120m$p$e[0m$e[38;2;255;200;0m ^>^> $e[0m" ^ | |
| /f >nul | |
| echo. | |
| echo Multiline prompt installed permanently. | |
| goto end | |
| :usage | |
| echo. | |
| echo Usage: | |
| echo. | |
| echo %~n0 1 ^<-- Vertical prompt | |
| echo %~n0 2 ^<-- Multiline prompt | |
| echo. | |
| :end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment