Skip to content

Instantly share code, notes, and snippets.

@amit-g
Created February 21, 2023 08:34
Show Gist options
  • Save amit-g/766b5e5cdfb7c5bcb129807364d39dce to your computer and use it in GitHub Desktop.
Save amit-g/766b5e5cdfb7c5bcb129807364d39dce to your computer and use it in GitHub Desktop.
Microsoft.PowerShell_profile.ps1
Import-Module -Name Terminal-Icons
oh-my-posh --init --shell pwsh --config https://gist.githubusercontent.com/amit-g/898df4ae41af11b58b00d00978769e26/raw/be8e68a58df2c80cfd396587fe42d9f6abace297/omp.json | Invoke-Expression
Function Set-LocationDocuments { Set-Location "${env:USERPROFILE}/Documents" }
Function Set-LocationDownloads { Set-Location "${env:USERPROFILE}/Downloads" }
Function Get-GitConfigNames { git config --global user.name; git config --global user.email; git config user.name; git config user.email; }
Set-Alias cddoc Set-LocationDocuments
Set-Alias cddow Set-LocationDownloads
Set-Alias gitconfigs Get-GitConfigNames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment