Skip to content

Instantly share code, notes, and snippets.

@reinaldocoelho
Last active March 4, 2022 18:17
Show Gist options
  • Save reinaldocoelho/273f3d1e559b512188b0025bac7bfb53 to your computer and use it in GitHub Desktop.
Save reinaldocoelho/273f3d1e559b512188b0025bac7bfb53 to your computer and use it in GitHub Desktop.
Powershell profile.
# Outros modulos PS instalados
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
# Salve este arquivo em: $profile (C:\Users\reinaldo\Documents\PowerShell\Microsoft.PowerShell_profile.ps1)
# Pode-se abrir direto para edição com: vim $profile
# Mais detalhes em: https://stackoverflow.com/questions/24914589/how-to-create-permanent-powershell-aliases
# Cria uma funcao para processar os comandos
function yarn-start { yarn && yarn start }
# Cria o Alias
Set-Alias -Name ys -Value yarn-start
# Cria uma funcao para processar os comandos
function git-fetch-pull { git fetch --progress --all --prune && git pull }
# Cria o Alias
Set-Alias -Name gfp -Value git-fetch-pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment