{"id":33014488,"url":"https://github.com/shields/git-prompt-watcher","last_synced_at":"2026-01-28T23:37:04.236Z","repository":{"id":307027025,"uuid":"1021268545","full_name":"shields/git-prompt-watcher","owner":"shields","description":"An oh-my-zsh plugin that automatically updates your prompt when git status changes, using fswatch to monitor repository files in real-time.","archived":false,"fork":false,"pushed_at":"2026-01-23T00:37:08.000Z","size":156,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-23T17:42:43.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shields.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-17T06:36:59.000Z","updated_at":"2025-09-04T03:58:52.000Z","dependencies_parsed_at":"2025-07-29T03:41:11.045Z","dependency_job_id":"d817e3f1-28de-435e-8b9e-fbf6bc383d8e","html_url":"https://github.com/shields/git-prompt-watcher","commit_stats":null,"previous_names":["shields/git-prompt-watcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shields/git-prompt-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shields%2Fgit-prompt-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shields%2Fgit-prompt-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shields%2Fgit-prompt-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shields%2Fgit-prompt-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shields","download_url":"https://codeload.github.com/shields/git-prompt-watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shields%2Fgit-prompt-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28855408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"ssl_error","status_checked_at":"2026-01-28T22:56:00.861Z","response_time":57,"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":[],"created_at":"2025-11-13T18:00:20.530Z","updated_at":"2026-01-28T23:37:04.231Z","avatar_url":"https://github.com/shields.png","language":"Rust","readme":"# Git Prompt Watcher\n\n[![CI](https://github.com/shields/git-prompt-watcher/actions/workflows/test.yaml/badge.svg)](https://github.com/shields/git-prompt-watcher/actions/workflows/test.yaml)\n\nAn oh-my-zsh plugin that automatically updates your prompt when git status changes, using `fswatch` to monitor repository files in real-time.\n\nIt solves the problem of slow shell prompts in large Git repositories by avoiding shell-based file system scanning. Instead, it uses a dedicated, high-performance file system watcher (`fswatch`) to instantly detect changes and refresh the prompt on demand.\n\n## Features\n\n- **Real-time Prompt Updates**: Your prompt refreshes instantly when you change branches, commit, or modify files.\n- **Efficient**: Uses `fswatch` for low-latency monitoring, avoiding slow shell commands in your prompt.\n- **Git-Aware**: Respects your `.gitignore` files and automatically re-indexes when they change.\n- **Stable**: Won't clutter your `jobs` output or leave orphaned processes behind.\n- **Heavily Tested**: A comprehensive test suite validates functionality in a real shell environment to guarantee reliability.\n\n## Requirements\n\n- **oh-my-zsh**\n- **fswatch** (e.g., `brew install fswatch`)\n- A prompt that supports `zle reset-prompt` (like Starship, Powerlevel10k, etc.)\n- macOS or Linux\n\n## Installation\n\n1.  **Clone the repository:**\n\n    ```bash\n    git clone https://github.com/shields/git-prompt-watcher.git ~/.oh-my-zsh/custom/plugins/git-prompt-watcher\n    ```\n\n2.  **Add the plugin to your `.zshrc`:**\n\n    ```zsh\n    plugins=(... git-prompt-watcher)\n    ```\n\n3.  **Restart your shell.**\n\n## How It Works\n\nThe plugin runs `fswatch` in the background to monitor key Git files (`.git/index`, `.git/HEAD`, `.git/refs`), your `.gitignore` files, and the working directory. When a change is detected, it sends a `SIGUSR1` signal to the parent Zsh process, which triggers `zle reset-prompt` to redraw your prompt.\n\n## Contributing\n\nContributions are welcome! The plugin is rigorously tested using a custom-built test suite in Rust. For more details on testing and development, please see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nLicensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshields%2Fgit-prompt-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshields%2Fgit-prompt-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshields%2Fgit-prompt-watcher/lists"}