{"id":24107624,"url":"https://github.com/bclehmann/configurepowershell","last_synced_at":"2026-05-17T09:41:58.791Z","repository":{"id":157579765,"uuid":"285772977","full_name":"bclehmann/ConfigurePowershell","owner":"bclehmann","description":"A command-line tool for creating a PowerShell profile","archived":false,"fork":false,"pushed_at":"2020-08-07T21:28:12.000Z","size":634,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T04:40:56.985Z","etag":null,"topics":["cli","config","configuration","powershell","python"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bclehmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-07T08:00:57.000Z","updated_at":"2020-08-07T21:28:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"154feeb7-720d-48c4-900b-9532327b3f7d","html_url":"https://github.com/bclehmann/ConfigurePowershell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bclehmann/ConfigurePowershell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclehmann%2FConfigurePowershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclehmann%2FConfigurePowershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclehmann%2FConfigurePowershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclehmann%2FConfigurePowershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bclehmann","download_url":"https://codeload.github.com/bclehmann/ConfigurePowershell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclehmann%2FConfigurePowershell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33134371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","config","configuration","powershell","python"],"created_at":"2025-01-10T22:39:49.097Z","updated_at":"2026-05-17T09:41:58.762Z","avatar_url":"https://github.com/bclehmann.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConfigurePowershell\nA command-line tool for creating a PowerShell profile\n\n## Demonstration\nBefore doing anything, run `ConfigurePowershell.py`, this will create a config file in the same directory as it. Edit the config file as appropriate.\n\nThe `profile_filepath` can be found by typing `$profile` into a powershell window and copy-pasting the result. Once you've modified the config file run `ConfigurePowershell.py` again.\n\nA `config.json` file like this:\n\n```\n{\n    \"profile_filepath\": \"C:/Users/benny/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1\",\n    \"git_branch_prompt\": true,\n    \"aliases\": [\n      [\"g\", \"git\"],\n      [\"py\", \"python3\"]\n    ]\n}\n```\n\nWill yield a powershell profile like this:\n\n```ps1\n# Put any of your own custom code outside the code block below\n\n# WHERE1 AUTOGENERATED CODE BEGIN\n\nfunction prompt{\n    $host.ui.rawui.WindowTitle = $(get-location)\n\n    if(Test-Path .git) {\n        git branch | foreach {\n            if ($_ -match \"^\\*(.*)\"){\n                Write-Host ($matches[1] + \" \") -NoNewline -ForegroundColor Yellow\n            }\n        }\n    }\n\n    Write-Host ($pwd.path + \"\u003e\") -NoNewline\n    \n    return \" \"     # Don't want to return anything, or it will be written too\n                   # However, you need to return a string\n}\n\nSet-Alias g git\nSet-Alias py python3\n\n# WHERE1 AUTOGENERATED CODE END\n\n```\n\n---\n![Logo](https://raw.githubusercontent.com/Benny121221/images/master/logo_full.png)\n\n# Made by Where 1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbclehmann%2Fconfigurepowershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbclehmann%2Fconfigurepowershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbclehmann%2Fconfigurepowershell/lists"}