You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second path should take into account whether the user has used Windows Documents folder redirection.
Additional context/output
If the user has moved the Documents folder to a different location, PowerShell will store the modules there. Usually, PS will automatically add this path to PSModulePath at startup, but it doesn't if the user has set a custom path, like scoop does. Which is why scoop needs to add the second path in the first place.
Possible Solution
The second path above should actually be $([Environment]::GetFolderPath('MyDocuments'))/WindowsPowerShell/Modules
The text was updated successfully, but these errors were encountered:
Bug Report
Current Behavior
Example:
scoop install gsudo
This causes scoop to add a user environment variable,
PSModulePath
and add two entries to it:<scoop-dir>/modules
$env:USERPROFILE/Documents/WindowsPowerShell/Modules
Expected Behavior
The second path should take into account whether the user has used Windows Documents folder redirection.
Additional context/output
If the user has moved the Documents folder to a different location, PowerShell will store the modules there. Usually, PS will automatically add this path to
PSModulePath
at startup, but it doesn't if the user has set a custom path, like scoop does. Which is why scoop needs to add the second path in the first place.Possible Solution
The second path above should actually be
$([Environment]::GetFolderPath('MyDocuments'))/WindowsPowerShell/Modules
The text was updated successfully, but these errors were encountered: