{"id":14063506,"url":"https://github.com/Shresht7/PSFavorite","last_synced_at":"2025-07-29T15:33:41.476Z","repository":{"id":103221689,"uuid":"578987428","full_name":"Shresht7/PSFavorite","owner":"Shresht7","description":"Favorite PowerShell commands to get as PSReadLine Predictions","archived":false,"fork":false,"pushed_at":"2024-05-07T12:36:16.000Z","size":186,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-07T11:02:46.303Z","etag":null,"topics":["command-line","powershell","powershell-module","psreadline"],"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/Shresht7.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":"2022-12-16T11:28:06.000Z","updated_at":"2024-05-07T12:35:40.000Z","dependencies_parsed_at":"2024-02-28T08:24:55.295Z","dependency_job_id":"35ea0679-d114-46d9-ba20-4d58bca5e8e1","html_url":"https://github.com/Shresht7/PSFavorite","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shresht7%2FPSFavorite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shresht7%2FPSFavorite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shresht7%2FPSFavorite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shresht7%2FPSFavorite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shresht7","download_url":"https://codeload.github.com/Shresht7/PSFavorite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028463,"owners_count":17858339,"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":["command-line","powershell","powershell-module","psreadline"],"created_at":"2024-08-13T07:03:22.404Z","updated_at":"2024-12-04T01:30:55.328Z","avatar_url":"https://github.com/Shresht7.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# `PSFavorite`\n\nThis module allows you to mark commands as **favorites**. Your favorite commands will appear as suggestions in the PSReadLine Predictor Views.\n\nFavorites do not replace history, they complement it. The history tracks _everything_ you've done, and favorites track the things that you've _deemed important_.\n\n![demo](./demo.gif)\n\n---\n\n## 📘 Usage\n\n\nWrite a command and press \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003e*\u003c/kbd\u003e to mark it as _favorite_.\n\n![screenshot](./add-to-favorites.png)\n\n\u003e `Note:` Add a helpful comment to describe the command for future reference.\n\n**Alternatively**, use the `Add-Favorite` cmdlet\n\n```powershell\nPS C:\\\u003e \"Get-Command | Get-Random | Get-Help    # Get help about a random command\" | Add-Favorite\n```\n\n\u003e `Note:` Remember to wrap the expressions in quotes!\n\nYour _favorite commands_ will start appearing as suggestions in the **PSReadLine Predictor View**.\n\n---\n\n## 📄 Requirements\n\n- PowerShell v7.2.0 or higher\n- PSReadLine v2.2.2 or higher\n\nPSReadLine must allow plugins as a `-PredictionSource`. (i.e. `Plugin` or `HistoryAndPlugin`)\n\n```powershell\nSet-PSReadLineOption -PredictionSource HistoryAndPlugin\n```\n\nTo enable the `List` view:\n\n```powershell\nSet-PSReadLineOption -PredictionViewStyle ListView\n```\n\n## 📦 Installation\n\n### 1. Install the Module\n\n```powershell\nInstall-Module -Name PSFavorite\n```\n\n### 2. Import the Module\n\n```powershell\nImport-Module -Name PSFavorite\n```\n\n\u003e Add this to your `$PROFILE` if you wish to enable this for every session.\n\n## 🪓 Uninstallation\n\n1. Close **all** PowerShell instances\n2. Launch a PowerShell session with no profile. `pwsh -NoProfile`\n3. Uninstall the Module. `Uninstall-Module -Name PSFavorite -Force`\n4. Close PowerShell\n\n---\n\n## 💽 Development\n\n### 📜 Scripts\n\n- [`Build.ps1`](./Build.ps1) - Builds the PowerShell module\n\n### 🧪 Testing\n\nThis module uses [Pester](https://pester.dev/) for testing. Run the following command to test the PowerShell module.\n\n```pwsh\nInvoke-Pester\n```\n\n## 📕 Reference\n\n- https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/create-cmdline-predictor?view=powershell-7.3\n\n---\n\n## 📃 License\n\nThis project is licensed under the [MIT License](./LICENSE). Please read the [LICENSE](./LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShresht7%2FPSFavorite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShresht7%2FPSFavorite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShresht7%2FPSFavorite/lists"}