Created
December 24, 2023 03:02
-
-
Save logonoff/aaf82b1550070f243fca0f55636a90b1 to your computer and use it in GitHub Desktop.
pwsh profile redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Push-Location "$env:userprofile\.config\powershell\" | |
$env:PSModulePath += ";$env:userprofile\.config\powershell\modules" | |
$env:Path += ";$env:userprofile\.config\powershell\session_path" | |
$profile = "$env:userprofile\.config\powershell\Microsoft.PowerShell_profile.ps1" | |
. $profile | |
Pop-Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment