Last active
October 24, 2022 19:13
-
-
Save ajsaraujo/d506743941a69cbf94e1130217c6fed7 to your computer and use it in GitHub Desktop.
My powershell profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuração oh-my-posh | |
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\1_shell.omp.json" | Invoke-Expression | |
$env:POSH_GIT_ENABLED = $true | |
# Configuração Git | |
Import-Module posh-git # autocomplete | |
function push { git push origin HEAD } # alias de push | |
# Alias de open | |
New-Alias open ii | |
# Autocomplete | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward | |
Import-Module posh-git | |
# Limpar terminal | |
clear |
Para instalar o oh-my-posh:
Install-Module oh-my-posh -Scope CurrentUser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Observações
code $PROFILE
3.1 Baixe e instale uma NerdFont
3.2 Nas configurações do Windows Terminal, selecione a fonte que você instalou