Skip to content

Instantly share code, notes, and snippets.

@calexandre
Created September 2, 2020 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calexandre/223aa174bbdebb39a7398cff4e57c304 to your computer and use it in GitHub Desktop.
Save calexandre/223aa174bbdebb39a7398cff4e57c304 to your computer and use it in GitHub Desktop.
My powershell profile
Invoke-Expression (&starship init powershell)
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
# enable completion in current shell, use absolute path because PowerShell Core not respect $env:PSModulePath
Import-Module "$($(Get-Item $(Get-Command scoop).Path).Directory.Parent.FullName)\modules\scoop-completion"
function pshistory {
Get-Content (Get-PSReadlineOption).HistorySavePath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment