{"id":20036842,"url":"https://github.com/vborovikov/pwsh","last_synced_at":"2025-10-06T08:15:47.199Z","repository":{"id":159358878,"uuid":"630351917","full_name":"vborovikov/pwsh","owner":"vborovikov","description":"PowerShell profile and scripts","archived":false,"fork":false,"pushed_at":"2025-02-20T15:15:20.000Z","size":171,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-20T16:26:48.326Z","etag":null,"topics":["powershell","powershell-profile","powershell-profile-script","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vborovikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-20T07:44:04.000Z","updated_at":"2025-02-20T15:15:24.000Z","dependencies_parsed_at":"2025-01-12T18:43:14.813Z","dependency_job_id":"63795d6c-e22d-43aa-be83-8e81b2b50e41","html_url":"https://github.com/vborovikov/pwsh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Fpwsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Fpwsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Fpwsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vborovikov%2Fpwsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vborovikov","download_url":"https://codeload.github.com/vborovikov/pwsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241466262,"owners_count":19967428,"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":["powershell","powershell-profile","powershell-profile-script","powershell-script"],"created_at":"2024-11-13T10:17:00.690Z","updated_at":"2025-10-06T08:15:42.177Z","avatar_url":"https://github.com/vborovikov.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell profile and scripts\n\nDefines a custom prompt function that replaces the `$Home` part of the current path with '~', displays the time, current path, git status, and the project toolset information (.NET version from the current project file), and sets the window title to the current folder/project name. The prompt also displays whether there was an error in the previous command.\n\nHow it might look like:\n\n![Windows Terminal](misc/pwsh5.png)\n\n## Installation\n\nThe profile script supports PowerShell v5.1 and higher.\n\n```pwsh\niwr 'https://github.com/vborovikov/pwsh/raw/refs/heads/main/profile.ps1' -outf $PROFILE.CurrentUserAllHosts\n```\n\n## MyTools.psm1\n\nThe `Find-File` function takes a `FileName` parameter and searches the current directory and all subdirectories for files with that name. It returns an array of `System.IO.FileInfo` objects representing the matching files.\n\nThe `Open-File` function is used to open files in an external editor. It has two ways to input a file: by pipeline or by filename. If a `FileInfo` object is piped in, it will be opened in the default editor. If a filename is provided, it will be opened in the specified editor (`C:\\Program Files\\EditPlus\\editplus.exe` by default). It accepts an optional `$Index` parameter that can be used to open multiple files by index.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvborovikov%2Fpwsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvborovikov%2Fpwsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvborovikov%2Fpwsh/lists"}