{"id":13602858,"url":"https://github.com/sigoden/argc-completions","last_synced_at":"2025-04-12T23:39:30.699Z","repository":{"id":166439790,"uuid":"614199555","full_name":"sigoden/argc-completions","owner":"sigoden","description":"{bash,zsh,fish,powershell,nushell}-completions for 1000+ commands.","archived":false,"fork":false,"pushed_at":"2024-11-27T07:20:54.000Z","size":4250,"stargazers_count":321,"open_issues_count":1,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T23:39:23.369Z","etag":null,"topics":["bash","bash-completions","completion","cross-shell","fish","fish-completion","nushell","nushell-completions","powershell","powershell-completions","shell","shell-completion","zsh","zsh-completions"],"latest_commit_sha":null,"homepage":"","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/sigoden.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}},"created_at":"2023-03-15T05:10:20.000Z","updated_at":"2025-04-04T19:43:57.000Z","dependencies_parsed_at":"2024-11-16T00:02:06.298Z","dependency_job_id":null,"html_url":"https://github.com/sigoden/argc-completions","commit_stats":{"total_commits":611,"total_committers":4,"mean_commits":152.75,"dds":0.004909983633387904,"last_synced_commit":"b9fb5fcd135d2306ad7eb6546e58b88de3911f98"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fargc-completions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fargc-completions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fargc-completions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sigoden%2Fargc-completions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sigoden","download_url":"https://codeload.github.com/sigoden/argc-completions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647255,"owners_count":21139081,"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":["bash","bash-completions","completion","cross-shell","fish","fish-completion","nushell","nushell-completions","powershell","powershell-completions","shell","shell-completion","zsh","zsh-completions"],"created_at":"2024-08-01T18:01:40.841Z","updated_at":"2025-04-12T23:39:30.680Z","avatar_url":"https://github.com/sigoden.png","language":"Shell","funding_links":[],"categories":["Completions","Shell","bash","\u003ca name=\"system\"\u003e\u003c/a\u003eSystem tools"],"sub_categories":["ZSH on Windows"],"readme":"# Argc-completions\n\n{bash,zsh,fish,powershell,nushell}-completions for 1000+ commands.\n\n![argc-completions](https://github.com/sigoden/argc-completions/assets/4012553/235bd290-516c-4dec-83d8-17cb852d35ae)\n\n## Features\n\n- Autocomplete for 1000+ commands ([full list](./MANIFEST.md)).\n- Automatically generate completion scripts from the help text or man pages.\n- Dynamic completion leads to fewer scripts loading and faster terminal startup.\n- Easily upgrade completion scripts as command are upgraded.\n- Cross shells: bash/zsh/powershell/fish/nushell/elvish/xonsh/tcsh.\n- Cross platforms: linux, macOS, and Windows.\n\n#### Amazing features that native completion lacks or is difficult to implement\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003eFeature\u003c/th\u003e\n            \u003cth\u003eShowcase\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eParallel Computing\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/9f062328-ad01-470e-963d-ae3f3777ca8c\" width=\"550px\" alt=\"complete-git-checkout\"\u003e\n                \u003cpre\u003e _choice_ref() { \u003cbr\u003e\u0026nbsp;\u0026nbsp; _argc_util_parallel _choice_branch ::: _choice_tag ::: _choice_head \u003cbr\u003e} \u003c/pre\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eFetch remote data\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/cc088b59-ee2f-413b-b2a4-c752c2796625\" width=\"550px\" alt=\"complete-cargo-add\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eComplete multiple values\u003cbr\u003e(comma-seperated)\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/ef95ebdc-9c97-4bd1-a485-c928ba614ce9\" width=\"550px\" alt=\"complete-dd-iflag\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eComplete multiple parts\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/e0ca086f-52c1-4cff-be22-a9c0db7bf823\" width=\"550px\" alt=\"complete-rustup-target-add\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eComplete key-value pairs\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/4a31753b-0518-4d7f-8773-cb649ba58e32\" width=\"550px\" alt=\"complete-ssh-o\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eComplete for plugins\u003cbr\u003e(git,cargo ...)\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/f9c7a3d6-08fe-48fd-bc23-7b10b6817fb4\" width=\"550px\" alt=\"complete-cargo-nextest\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eDelegate to another command\u003cbr\u003e(sudo,doas,npx...)\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/ce198381-997f-4a0c-9126-793b7b8a7324\" width=\"550px\" alt=\"complete-yarn-workspace\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eStyle \u0026amp; color\u003c/td\u003e\n            \u003ctd\u003e\u003cimg src=\"https://github.com/sigoden/argc-completions/assets/4012553/77531d0e-5857-4b53-9b0f-52fb48215216\" width=\"550px\" alt=\"complete-colors\"\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n## Getting Started\n\n\n```sh\ngit clone https://github.com/sigoden/argc-completions.git\ncd argc-completions\n./scripts/download-tools.sh\n./scripts/setup-shell.sh bash  # bash/zsh/powershell/fish/nushell/elvish/xonsh/tcsh\n```\n\n\u003e For Windows, please run the above code in Git Bash.\n\u003e For macOS, `brew install bash gawk gnu-sed` to avoid compatibility issues.\n\nTools downloaded by `./scripts/download-tools.sh`:\n  - [argc](https://github.com/sigoden/argc): completion engine\n  - [yq](https://github.com/mikefarah/yq): YAML/JSON/XML/CSV/TOML processor\n\n### Uninstall easily\n\n1. Delete the `argc-completions` directory that you have downloaded.\n2. Undo the changes made to the shell rcfile (`~/.bashrc`, `~/.zshrc`, ...).\n\n## Generate your own completion script\n\n```sh\n./scripts/generate.sh your-command\n```\n\n![generate](https://github.com/sigoden/argc-completions/assets/4012553/1bd7c6af-8dbb-4c83-9c40-d75fc8702bbc)\n\nTo learn how `generate` works, see [docs/generate.md](docs/generate.md)\n\nTo learn various complete patterns, see [docs/complete-patterns.md](docs/complete-patterns.md)\n\n## License\n\nArgc-completions is made available under the terms of the MIT License. \n\nSee the LICENSE file for license details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigoden%2Fargc-completions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigoden%2Fargc-completions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigoden%2Fargc-completions/lists"}