Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powershell-coffee

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.

powershell-coffee

Instalação

irm https://raw.githubusercontent.com/RicSchonfelder/powershell-coffee/main/install.ps1 | iex

Depois feche todas as janelas e abra uma nova.

O instalador:

  1. instala o oh-my-posh (via winget) se não existir;
  2. baixa o tema para %USERPROFILE%\.omp-themes\coffee.omp.json;
  3. escreve um bloco idempotente (entre # >>> coffee-powershell >>> e # <<< coffee-powershell <<<) no seu $PROFILE.

Rodar de novo só atualiza o bloco — não duplica.

Cores

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

Fundo do Windows Terminal (opcional)

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".

Desinstalar

irm https://raw.githubusercontent.com/RicSchonfelder/powershell-coffee/main/uninstall.ps1 | iex

Remove 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

About

Tema café de alto contraste para PowerShell e Windows Terminal, baseado em Oh My Posh, PSReadLine e Catppuccin Mocha.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages