{"id":33014641,"url":"https://github.com/enrico9034/zsh-watch-plugin","last_synced_at":"2026-02-05T10:30:16.859Z","repository":{"id":46070883,"uuid":"301409965","full_name":"enrico9034/zsh-watch-plugin","owner":"enrico9034","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-19T16:54:28.000Z","size":7,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T16:21:55.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/enrico9034.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}},"created_at":"2020-10-05T13:00:27.000Z","updated_at":"2024-03-21T14:59:11.000Z","dependencies_parsed_at":"2022-08-20T18:30:23.762Z","dependency_job_id":null,"html_url":"https://github.com/enrico9034/zsh-watch-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enrico9034/zsh-watch-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enrico9034%2Fzsh-watch-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enrico9034%2Fzsh-watch-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enrico9034%2Fzsh-watch-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enrico9034%2Fzsh-watch-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enrico9034","download_url":"https://codeload.github.com/enrico9034/zsh-watch-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enrico9034%2Fzsh-watch-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29119232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T09:40:36.738Z","status":"ssl_error","status_checked_at":"2026-02-05T09:36:49.977Z","response_time":65,"last_error":"SSL_read: 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.533Z","updated_at":"2026-02-05T10:30:16.852Z","avatar_url":"https://github.com/enrico9034.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# WATCH\n\nEasily prefix your current or previous commands with `watch` by pressing \u003ckbd\u003eAlt + w\u003c/kbd\u003e\n\n1. Clone this repository into `$ZSH_CUSTOM/plugins` (by default `~/.oh-my-zsh/custom/plugins`)\n\n```bash\ngit clone https://github.com/enrico9034/watch-plugin-zsh.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/watch\n```\n\n2. To use it, add `watch` to the plugins array in your zshrc file:\n\n```zsh\nplugins=(... watch)\n```\n\n3. Start a new terminal session.\n\n## Usage\n\n### Current typed commands\n\nSay you have typed a long command and forgot to add `watch` in front:\n\n```console\n$ kubectl get pod -n namespace\n```\n\nBy pressing the \u003ckbd\u003eAlt + w\u003c/kbd\u003e key, you will have the same command with `watch` prefixed without typing:\n\n```console\n$ watch kubectl get pod -n namespace\n```\n\n### Previous executed commands\n\nSay you want to delete a system file and denied:\n\n```console\n$ kubectl get pod -n namespace\n$\n```\n\nBy pressing the \u003ckbd\u003eAlt + w\u003c/kbd\u003e key, you will have the same command with `watch` prefixed without typing:\n\n```console\n$ rm some-system-file.txt\n$\n$ kubectl get pod -n namespace\n$\n```\n\n### This plugin is based on official sudo plugin\n\nsudo official plugin: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/sudo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenrico9034%2Fzsh-watch-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenrico9034%2Fzsh-watch-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenrico9034%2Fzsh-watch-plugin/lists"}