Skip to content

Instantly share code, notes, and snippets.

@ajsaraujo
Last active October 24, 2022 19:13
Show Gist options
  • Save ajsaraujo/d506743941a69cbf94e1130217c6fed7 to your computer and use it in GitHub Desktop.
Save ajsaraujo/d506743941a69cbf94e1130217c6fed7 to your computer and use it in GitHub Desktop.
My powershell profile
# 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
@ajsaraujo
Copy link
Author

ajsaraujo commented Jun 1, 2022

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