{"id":13793244,"url":"https://github.com/aca/elvish-bash-completion","last_synced_at":"2026-01-21T23:44:04.212Z","repository":{"id":44573851,"uuid":"455937293","full_name":"aca/elvish-bash-completion","owner":"aca","description":"Elvish completion from bash completion","archived":false,"fork":false,"pushed_at":"2023-02-01T14:29:14.000Z","size":43,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T08:49:14.850Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-05T17:28:02.000Z","updated_at":"2023-12-01T17:10:39.000Z","dependencies_parsed_at":"2023-02-17T06:31:11.083Z","dependency_job_id":null,"html_url":"https://github.com/aca/elvish-bash-completion","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/aca%2Felvish-bash-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Felvish-bash-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Felvish-bash-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aca%2Felvish-bash-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aca","download_url":"https://codeload.github.com/aca/elvish-bash-completion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816668,"owners_count":21968862,"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-08-03T23:00:16.718Z","updated_at":"2026-01-21T23:44:04.183Z","avatar_url":"https://github.com/aca.png","language":"Shell","funding_links":[],"categories":["Completion Scripts"],"sub_categories":[],"readme":"# elvish-bash-completion\n\nGeneralized version of [ezh/elvish-bash-completion](https://github.com/ezh/elvish-bash-completion) with some improvements.\nProvides single function `bash-completer:new`, you can convert any bash completion to elvish.\n\nIt includes submodules for bash completions and also tries to find completion in your host searching through\n```\n/usr/share/bash-completion/completions/\n/usr/local/share/bash-completion/completions/\n/usr/local/etc/bash_completion.d/\n```\n\n## Options\n- `bash_function`: Normally completion bash function is named as \"_command command\", this option is for commands that doesn't follow this convention.\n- `completion_filename`: Some completion file is named to `fd.bash` instead of `fd` (on MacOS)\n\n## Install\n\n```\n# This library includes submodules we can't use epm but we can still install in the same directory.\ngit clone --recurse-submodules https://github.com/aca/elvish-bash-completion ~/.local/share/elvish/lib/github.com/aca/elvish-bash-completion\n```\n\n## Usage\n\nYou might want to check my [configs](https://github.com/aca/dotfiles/blob/master/.config/elvish/lib/completion.elv) for more.\n```\nuse github.com/aca/elvish-bash-completion/bash-completer\n\nset edit:completion:arg-completer[ssh] = (bash-completer:new \"ssh\")\nset edit:completion:arg-completer[scp] = (bash-completer:new \"scp\")\nset edit:completion:arg-completer[curl] = (bash-completer:new \"curl\")\nset edit:completion:arg-completer[man] = (bash-completer:new \"man\")\nset edit:completion:arg-completer[killall] = (bash-completer:new \"killall\")\nset edit:completion:arg-completer[aria2c] = (bash-completer:new \"aria2c\")\nset edit:completion:arg-completer[ip] = (bash-completer:new \"ip\")\nset edit:completion:arg-completer[journalctl] = (bash-completer:new \"journalctl\")\nset edit:completion:arg-completer[tcpdump] = (bash-completer:new \"tcpdump\")\nset edit:completion:arg-completer[iptables] = (bash-completer:new \"iptables\")\nset edit:completion:arg-completer[tmux] = (bash-completer:new \"tmux\")\nset edit:completion:arg-completer[fd] = (bash-completer:new \"fd\")\nset edit:completion:arg-completer[rg] = (bash-completer:new \"rg\")\nset edit:completion:arg-completer[pueue] = (bash-completer:new \"pueue\")\n\n# for some commands, we need to pass bash_function\nset edit:completion:arg-completer[gh] = (bash-completer:new \"gh\" \u0026bash_function=\"__start_gh\")\nset edit:completion:arg-completer[pkill] = (bash-completer:new \"pkill\" \u0026bash_function=\"pgrep\")\nset edit:completion:arg-completer[git] = (bash-completer:new \"git\" \u0026bash_function=\"__git_wrap__git_main\")\nset edit:completion:arg-completer[umount] = (bash-completer:new \"umount\" \u0026bash_function=\"_umount_module\")\nset edit:completion:arg-completer[systemctl] = (bash-completer:new \"systemctl\" \u0026bash_function=\"_systemctl systemctl\")\nset edit:completion:arg-completer[virsh] = (bash-completer:new \"virsh\" \u0026bash_function=\"_virsh_complete virsh\")\n\n# builtin completions\nset edit:completion:arg-completer[which] = (bash-completer:new \"which\"  \u0026bash_function=\"_complete type\" \u0026completion_filename=\"complete\")\n\n# alias\nset edit:completion:arg-completer[kubectl] = (bash-completer:new \"kubectl\" \u0026bash_function=\"__start_kubectl\")\nset edit:completion:arg-completer[k] = $edit:completion:arg-completer[kubectl]\n\n# specify completion filename for completions with different name\n# set edit:completion:arg-completer[rg] = (bash-completer:new \"rg\" \u0026completion_filename=\"custom_rg_completion\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Felvish-bash-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faca%2Felvish-bash-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faca%2Felvish-bash-completion/lists"}