{"id":17489596,"url":"https://github.com/rsteube/lazycomplete","last_synced_at":"2025-04-22T18:26:40.853Z","repository":{"id":41816908,"uuid":"312819342","full_name":"rsteube/lazycomplete","owner":"rsteube","description":"lazy loading for shell completion scripts","archived":false,"fork":false,"pushed_at":"2022-11-22T14:08:57.000Z","size":41,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T17:41:17.429Z","etag":null,"topics":["bash","completion","fish","lazy","oil","powershell","shell","xonsh","zsh"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rsteube.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-11-14T13:09:21.000Z","updated_at":"2025-02-18T12:18:16.000Z","dependencies_parsed_at":"2023-01-21T09:47:31.985Z","dependency_job_id":null,"html_url":"https://github.com/rsteube/lazycomplete","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsteube%2Flazycomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsteube%2Flazycomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsteube%2Flazycomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsteube%2Flazycomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsteube","download_url":"https://codeload.github.com/rsteube/lazycomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296537,"owners_count":21407039,"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","completion","fish","lazy","oil","powershell","shell","xonsh","zsh"],"created_at":"2024-10-19T05:43:37.061Z","updated_at":"2025-04-22T18:26:40.808Z","avatar_url":"https://github.com/rsteube.png","language":"Go","readme":"# lazycomplete\n\nLazy loading for shell completion scripts.\n\nA lot of programs provide their own shell completion script by invoking them with a specific argument like `mybinary completion`. The easiest way to use it is to add the call to the shell init script (like `.bashrc`) which keeps the completion up to date. Add a couple of these and shell startup time is affected considerably though as a single invocation and subsequent parsing can take ~50-100ms. This tool generates a lazy loading script for given binaries where the actual completion script is resolved only when needed.\n## Status\n\nWIP\n\n## Usage\n\nInvoke with pairs of binary name and command to be invoked to create the completion:\n\n```sh\n# bash\nsource \u003c(lazycomplete \\\n  example 'example _carapace' \\\n  lab 'lab _carapace' \\\n)\n\n# elvish\neval (lazycomplete ^\n  example 'example _carapace' ^\n  lab 'lab _carapace' ^\n|slurp)\n\n\n# fish\nlazycomplete \\\n  example 'example _carapace' \\\n  lab 'lab _carapace' \\\n| source\n\n# oil\nsource \u003c(lazycomplete \\\n  example 'example _carapace' \\\n  lab 'lab _carapace' \\\n)\n\n# powershell\nlazycomplete `\n  example 'example _carapace' `\n  lab 'lab _carapace' `\n| Out-String | Invoke-Expression\n\n# xonsh\nexec($(lazycomplete \\\n  example 'example _carapace' \\\n  lab 'lab _carapace' \\\n))\n\n# zsh\nsource \u003c(lazycomplete \\\n  example 'example _carapace' \\\n  lab 'lab _carapace' \\\n)\n```\n","funding_links":[],"categories":["Completions"],"sub_categories":["ZSH on Windows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsteube%2Flazycomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsteube%2Flazycomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsteube%2Flazycomplete/lists"}