Skip to content

Instantly share code, notes, and snippets.

@cumulus13
Last active May 15, 2026 23:31
Show Gist options
  • Select an option

  • Save cumulus13/2cb7535bebb65519fcd4118bb6d83486 to your computer and use it in GitHub Desktop.

Select an option

Save cumulus13/2cb7535bebb65519fcd4118bb6d83486 to your computer and use it in GitHub Desktop.
MyWindowsPrompt
@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