{"id":17381821,"url":"https://github.com/JustinGrote/ModulePath","last_synced_at":"2025-02-27T10:30:37.430Z","repository":{"id":256621676,"uuid":"855591766","full_name":"JustinGrote/ModulePath","owner":"JustinGrote","description":"PowerShell Module to get and set the primary PSModulePath config","archived":false,"fork":false,"pushed_at":"2024-09-13T15:49:03.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-14T06:44:53.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JustinGrote.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T06:02:15.000Z","updated_at":"2024-09-13T15:49:07.000Z","dependencies_parsed_at":"2024-09-14T05:12:21.748Z","dependency_job_id":null,"html_url":"https://github.com/JustinGrote/ModulePath","commit_stats":null,"previous_names":["justingrote/modulepath"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FModulePath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FModulePath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FModulePath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FModulePath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustinGrote","download_url":"https://codeload.github.com/JustinGrote/ModulePath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219842824,"owners_count":16556564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T07:01:54.908Z","updated_at":"2024-10-16T07:04:51.846Z","avatar_url":"https://github.com/JustinGrote.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# ModulePath\n\nThis module can be used to get and set the new [PSModulePath Config Setting in PowerShell 7](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_powershell_config?view=powershell-7.4#psmodulepath), which allows you to set your PSModulePath default directory. This is useful for targeting modules outside of OneDrive.\n\nPlease note that `PSGet/PSResourceGet` do not have native support for this new directory, and you will need to use Save-Module/Save-PSResource instead of Install-Module/Install-PSResource. As an alternative, consider [ModuleFast](https://github.com/justingrote/modulefast) which has native support and detection for powershell.config.json.\n\n## Quick Start\n\n```powershell\n#Returns nothing if your powershell.config.json has not been configured yet\nGet-ModulePathConfig \n\n#Preview setting the module path to this, optionally creating it if it doesn't exist. \nSet-ModulePathConfig -Path '%LOCALAPPDATA%\\powershell\\Modules' -Whatif \n\n#Apply the setting. Optionally specify -AllUsers to specify it at the PowerShell level (usually requires admin rights unless powershell is locally installed into your users directory)\nSet-ModulePathConfig -Path '%LOCALAPPDATA%\\powershell\\Modules' # Sets the module path for the user\n\n#Gets your current active primary PSModulePath. Note that a restart of PowerShell is required for the above to take effect.\nGet-ModulePath\nGet-ModulePath -AllUsers\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustinGrote%2FModulePath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJustinGrote%2FModulePath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustinGrote%2FModulePath/lists"}