Skip to content

Instantly share code, notes, and snippets.

@logonoff
Created December 24, 2023 03:02
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 logonoff/aaf82b1550070f243fca0f55636a90b1 to your computer and use it in GitHub Desktop.
Save logonoff/aaf82b1550070f243fca0f55636a90b1 to your computer and use it in GitHub Desktop.
pwsh profile redirect
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