{"id":20162597,"url":"https://github.com/zdharma-continuum/zsh-completion-generator","last_synced_at":"2025-09-21T12:32:56.964Z","repository":{"id":103427505,"uuid":"427517883","full_name":"zdharma-continuum/zsh-completion-generator","owner":"zdharma-continuum","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-14T22:18:19.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-14T00:29:09.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdharma-continuum.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":"2021-11-12T22:59:37.000Z","updated_at":"2023-09-28T00:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"4696a74f-b3f1-42e0-a59f-9bece08fb1a4","html_url":"https://github.com/zdharma-continuum/zsh-completion-generator","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/zdharma-continuum%2Fzsh-completion-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-completion-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-completion-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-completion-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdharma-continuum","download_url":"https://codeload.github.com/zdharma-continuum/zsh-completion-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233753377,"owners_count":18724823,"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-11-14T00:25:52.821Z","updated_at":"2025-09-21T12:32:51.665Z","avatar_url":"https://github.com/zdharma-continuum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zsh-completion-generator\n\nPlugin that generates completion functions automatically from getopt-style help texts.\n\n## Motivation\n\nWriting completion functions is boring, plus they can break when the software updates the CLI. This plugin tries to\nparse the help text of the given commands and generate a completion function automatically.\n\nIt's a best-effort service, not guaranteed to work in all cases. Completion functions which are already present (and\nmost likely better) are not overridden by this plugin.\n\n## How to install\n\n### Using antigen\n\nAfter installing antigen put `antigen bundle RobSis/zsh-completion-generator` into your `.zshrc`.\n\n### Manually\n\n- Download the script or clone this repository:\n\n  `$ cd ~/.zsh/`\n\n  `$ git clone git://github.com/RobSis/zsh-completion-generator.git`\n\n- Source the script **before compinit** in your `~/.zshrc`:\n\n  `source $HOME/.zsh/zsh-completion-generator/zsh-completion-generator.plugin.zsh`\n\n  `...`\n\n  `compinit`\n\n#### Custom zsh completion folder\n\nIf you want to use a different folder than the default one for completion files, you can export the GENCOMPL_FPATH\nvariable before sourcing the plugin :\n\n```\n$ GENCOMPL_FPATH=$HOME/.zsh/complete\n$ source $HOME/.zsh/zsh-completion-generator/zsh-completion-generator.plugin.zsh\n```\n\n#### Custom python version\n\nIf you want to use a specific Python interpreter name, you can export the GENCOMPL_PY variable before sourcing the\nplugin :\n\n```\n$ GENCOMPL_PY=python2\n$ source $HOME/.zsh/zsh-completion-generator/zsh-completion-generator.plugin.zsh\n```\n\n## How to use\n\nProvide default program list by (example):\n\n```zsh\nzstyle :plugin:zsh-completion-generator programs   ggrep tr cat\n```\n\nThe plugin will create completions for those programs at load time, once. You can also generate completions from the\nshell, by using provided `gencomp` function:\n\n```\n$ gencomp ggrep\n$ source ~/.zshrc # or run `compinit'\n$ ggrep -*[TAB]* -\u003e magic\n```\n\n## Licence\n\nGNU GPLv2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzsh-completion-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdharma-continuum%2Fzsh-completion-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzsh-completion-generator/lists"}