- Notifications
You must be signed in to change notification settings - Fork100
Idea for ability to optionally override default modules and scripts install path - Duscussion and contribution is welcome!#1673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…ke path to returning standard paths shorter
…ke path to returning standard paths shorter
…werShell--PSResourceGet into install-path-override
o-l-a-v commentedAug 21, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@anamnavi,@alerickson Have you had any time to check out this idea? Any thoughts? 🤔 Edit: It's probably better to use
Whichever solution you want for PSResourceGet, let's make it happen. I can try to do it, but I'd first want to hear what alternative you'd like. 🙂 Edit 2: Seems Windows PowerShell does not support |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
What
I'm experimenting with a way to override PSResourceGet install path for modules and scripts, suggested in my comment#1494 (comment).
This PR already got the basic logic working for getting the path override if present! 🥳
Todo
PSResourceGetInstallPathOverrideif present and use it instead of default paths.Set-PSResourceInstallPathOverride -Path <path> -Scope <CurrentUser|AllUsers>.PSResourceGetInstallPathOverrideand add it toPSModulePathif not already there.-WhatIfGet-PSResourceGetInstallPathOverride?Remove-PSResourceGetInstallPathOverride?Get-PSResourcesearches for all paths inPSModulePathGet-PSResourcedoes not search in user context environment variablePSModulePath#889Related issues / feature requests
%OneDriveCommercial%if OneDrive for Business Known Folder Move (KFM) is enabled #627Get-PSResourcedoes not search in user context environment variablePSModulePath#889PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.