Skip to content

Instantly share code, notes, and snippets.

@feliperugai
Last active April 13, 2021 16:35
Show Gist options
  • Save feliperugai/1f06fdba678367a26b1fd62109567a56 to your computer and use it in GitHub Desktop.
Save feliperugai/1f06fdba678367a26b1fd62109567a56 to your computer and use it in GitHub Desktop.
Powershell development productivity profile
Import-Module oh-my-posh
Import-Module posh-git
Import-Module -Name Terminal-Icons
Import-Module PowerColorLS
Set-Alias -Name open -Value ii
Set-Alias -Name code -Value code-insiders
Set-Alias -Name ls -Value PowerColorLS -Option AllScope
Set-PSReadlineKeyHandler -Key Tab -Function Complete
Set-PoshPrompt -Theme Pararussel
Invoke-Expression (& {
$hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
(zoxide init --hook $hook powershell) -join "`n"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment