Skip to content

Instantly share code, notes, and snippets.

@wildiney
Forked from aleduca/powershell.txt
Created April 19, 2024 19:47
Show Gist options
  • Save wildiney/79f8b842e201033673cfde81a5f96e3b to your computer and use it in GitHub Desktop.
Save wildiney/79f8b842e201033673cfde81a5f96e3b to your computer and use it in GitHub Desktop.
Powershell - oh my posh
- Baixar o powershell: https://learn.microsoft.com/pt-br/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#winget
- NerdFont: https://www.nerdfonts.com/font-downloads
- Oh My Posh: https://ohmyposh.dev/
- Criar arquivo de config: .$PROFILE ou code $PROFILE
- Instalar PSReadline: Install-Module PSReadLine -AllowPrerelease -Force
- Instalar icones: Import-Module -Name Terminal-Icons
- Apelido para comandos:
function executeArtisanCli {
php artisan $args
}
Set-Alias -Name pa -Value executeArtisanCli
- Autocomplete: Set-PSReadLineOption -PredictionViewStyle ListView
Meu arquivo de config completo:
oh-my-posh init pwsh --config 'C:/Users/MUDE-AQUI-SEU-NOME/AppData/Local/Programs/oh-my-posh/themes/atomic.omp.json' | Invoke-Expression
Set-PSReadLineOption -PredictionViewStyle ListView
function executeArtisanCli {
php artisan $args
}
Set-Alias -Name pa -Value executeArtisanCli
Import-Module -Name Terminal-Icons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment