{"id":15621923,"url":"https://github.com/fredericrous/posh-p4","last_synced_at":"2025-04-28T14:45:51.258Z","repository":{"id":149342191,"uuid":"52800639","full_name":"fredericrous/posh-p4","owner":"fredericrous","description":"perforce prompt and auto completion for powershell","archived":false,"fork":false,"pushed_at":"2018-03-11T17:33:46.000Z","size":22,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T10:33:50.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fredericrous.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":"2016-02-29T15:13:25.000Z","updated_at":"2025-02-04T16:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fc30e9d-d07e-4334-940b-cbb34f573eaf","html_url":"https://github.com/fredericrous/posh-p4","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/fredericrous%2Fposh-p4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fposh-p4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fposh-p4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericrous%2Fposh-p4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredericrous","download_url":"https://codeload.github.com/fredericrous/posh-p4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251332816,"owners_count":21572697,"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-03T09:52:18.630Z","updated_at":"2025-04-28T14:45:51.220Z","avatar_url":"https://github.com/fredericrous.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"posh-p4\n=======\n\nPerforce PowerShell integration. Prompt info and command line autocompletion\n\n - __Prompt for Perforce workspaces__\n \n   Show the current depot and the state of files (additions, modifications, deletions) within prompt\n\n - __Tab completion__\n \n   Provides tab completion for common commands when using perforce.\n   \n   E.g. `p4 a\u003ctab\u003e` --\u003e `p4 add`\n\n\nUsage\n-----\n\nTab completion should work out of the box. To configure the prompt, see file `profile.example.ps1` as an example. Basically the function that writes p4 status prompt is `Write-P4Prompt`\n\nIf prompt shows a ! instead of the depot tree, it means you have too many views sync to the same folder. Script is limited to 1.\nIt could also mean your are not connected to perforce. try command `p4 where ...`\n\n_Note on performance: If you navigate at the root of a large repo, prompt will be slow._\n_posh-p4 uses `p4 status ...` to know which are files to add or to delete.. there might be other commands that are faster_\n\n\nInstalling via OneGet\n--------------------\n\nrun in powershell command:\n\n```\nInstall-Module posh-p4 -Scope CurrentUser -AllowClobber\n```\n\n\nInstalling manually\n--------------------\n\nCreate folder C:\\Users\\\u003cUserName\u003e\\Documents\\WindowsPowerShell\\Modules\\posh-p4\n\nCopy all files from this repo there.\n\nrun command:\n\n```\nInstall-Module posh-p4\n```\n\n\nThe Prompt\n----------\n\nPowerShell generates its prompt by executing a `prompt` function, if one exists.\n\nAn example of such a function is in `profile.example.ps1`\n\n    C:\\Users\\mydepot\\project p4:(//depot/project)\u003e\n\n* when depot path is Green, it means you are sync with the latest submit on this folder\n* when depot path is Red, there is newer(s) submit\n* whend depot path is Cyan, perforce server was too long to tell status so posh-p4 skiped answer in order to not take too long to display the prompt\n\nBy default, the status summary has the following format:\n\n    [+A ~B -C]\n\nABC represent the working directory\n\n * `+` = Added files\n * `~` = Modified files\n * `-` = Removed files\n\nif there is a `?` instead of a number, it means perforce server took too much time to answer\n\nInspired by\n-----------\n\n- posh-git\n- posh-npm\n- oh-my-zsh \u003c3\n\n\nLicense\n--------\n\nMicrosoft Public License https://opensource.org/licenses/MS-PL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericrous%2Fposh-p4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericrous%2Fposh-p4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericrous%2Fposh-p4/lists"}