Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1682

Custom prompt - pretty easy to modify.

$
0
0
It might be too noisy for some, but here's some custom prompt code that helps show OS/Host/Git Context/Error level/Subshell Depth.

Preview with commands to display the status bits
PromptCapture.JPG


In tcstart.btm
library /r %ROOT\library prompt %%@execstr[BuildPrompt %%?]

Library Code:
BuildPrompt { @echo off setlocal set LASTEXITCODE=%1 set CYAN=$e[36;1;44m set WHITE=$e[m$e[97;44m set GREEN=$e[32;1;44m set RED=$e[1;91;44m set YELLOW=$e[1;93;44m...

Read more

Viewing all articles
Browse latest Browse all 1682

Trending Articles