{"id":16995850,"url":"https://github.com/qtc-de/completion-helpers","last_synced_at":"2025-04-15T21:23:23.012Z","repository":{"id":99550003,"uuid":"282913247","full_name":"qtc-de/completion-helpers","owner":"qtc-de","description":"Some utility functions for writing bash completion scripts","archived":false,"fork":false,"pushed_at":"2021-04-21T04:29:20.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T01:24:14.090Z","etag":null,"topics":["autocomplete","autocompletion","bash","bash-completion","completion"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qtc-de.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":"2020-07-27T13:54:58.000Z","updated_at":"2024-08-30T03:35:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3d1983d-c302-4f0b-b64e-d126cfc29be6","html_url":"https://github.com/qtc-de/completion-helpers","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/qtc-de%2Fcompletion-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtc-de%2Fcompletion-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtc-de%2Fcompletion-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtc-de%2Fcompletion-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qtc-de","download_url":"https://codeload.github.com/qtc-de/completion-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155118,"owners_count":21221542,"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":["autocomplete","autocompletion","bash","bash-completion","completion"],"created_at":"2024-10-14T03:50:27.945Z","updated_at":"2025-04-15T21:23:23.001Z","avatar_url":"https://github.com/qtc-de.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Completion Helpers\n\n----\n\nAutocompletion is one of the most important features of a command shell. It accelerates\nyour typing and improves the overall user experience. For *bash*, autocompletion is mostly\nprovided by the awesome [bash-completion project](https://github.com/scop/bash-completion).\nThis project not only provides completion scripts for the most common commands, it also defines\nuseful helper functions that are generally useful for writing autocompletion scripts.\n\nThat being said, I was missing certain helper functions that I tend to use in my own completion\nscripts. These additional helper functions were [already requested](https://github.com/scop/bash-completion/issues/432)\non the *bash-completion* project and will hopefully be implemented. Until this happens, the\ncorresponding functions are stored inside this repository.\n\n\n### Installation\n\n----\n\nOn startup, *bash* automatically sources the file ``~/.bash_completion`` from your home directory. \nThis is a good place to store autocompletion related code and the helper functions from this project\nshould be stored in this file too. If the file does not already exist you can just copy the version\nfrom this repository:\n\n```console\n$ git clone https://github.com/qtc-de/completion-helpers\n$ cp completion-helpers/bash_completion ~/.bash_completion\n```\n\nApart from some helper functions, the [bash_completion](./bash_completion) file from this repository\nalso contains the following code:\n\n```bash\nfor bcfile in ~/.bash_completion.d/* ; do\n  [ -f \"$bcfile\" ] \u0026\u0026 . $bcfile\ndone\n```\n\nThis code snipped sources all files contained inside the folder ``~/.bash_completion.d`` and allows\nyou to store completion scripts for different commands in separate files. This solution is more organized\nthan putting all command specific completion code inside your ``~/.bash_completion`` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtc-de%2Fcompletion-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqtc-de%2Fcompletion-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtc-de%2Fcompletion-helpers/lists"}