Tema café para PowerShell no Windows: prompt Oh My Posh (Catppuccin Mocha) + cores de sintaxe do PSReadLine de alto contraste (fundo escuro, texto claro) para o argumento nunca mais sumir.
irm https://raw.githubusercontent.com/RicSchonfelder/powershell-coffee/main/install.ps1 | iexDepois feche todas as janelas e abra uma nova.
O instalador:
- instala o
oh-my-posh(via winget) se não existir; - baixa o tema para
%USERPROFILE%\.omp-themes\coffee.omp.json; - escreve um bloco idempotente (entre
# >>> coffee-powershell >>>e# <<< coffee-powershell <<<) no seu$PROFILE.
Rodar de novo só atualiza o bloco — não duplica.
| Token | Cor | |
|---|---|---|
| Comando | #E4B584 |
dourado |
| Argumento/parâmetro | #94D6E0 |
ciano |
| String | #A6C88F |
verde |
| Número | #E0A3C0 |
rosa |
| Operador | #E8D8C3 |
creme |
| Variável | #E08A6B |
terracota |
| Comentário | #8A7A68 |
cinza |
O PSReadLine cuida do texto digitado; o fundo café é do Windows Terminal.
Abra Ctrl+, → Open JSON file e adicione ao array schemes:
{
"name": "Coffee",
"background": "#1E1712",
"foreground": "#E8D8C3",
"cursorColor": "#D4A574",
"selectionBackground": "#4A382A",
"black": "#2B2118",
"red": "#C4746E",
"green": "#8A9A7B",
"yellow": "#D4A574",
"blue": "#8B9DC3",
"purple": "#C49BB0",
"cyan": "#89B8C2",
"white": "#D4C4B0",
"brightBlack": "#6A5A48",
"brightRed": "#D4847E",
"brightGreen": "#9AB88B",
"brightYellow": "#E4B584",
"brightBlue": "#9BB8D3",
"brightPurple": "#D4ABC0",
"brightCyan": "#99C8D2",
"brightWhite": "#E4D4C0"
}Depois, em profiles.defaults, defina "colorScheme": "Coffee".
irm https://raw.githubusercontent.com/RicSchonfelder/powershell-coffee/main/uninstall.ps1 | iexRemove o bloco do $PROFILE, o tema e o oh-my-posh. Para manter o oh-my-posh
instalado (removendo só o tema e o bloco):
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/RicSchonfelder/powershell-coffee/main/uninstall.ps1))) -KeepOhMyPosh