🍺 BREW Explorer

← all formulae

bash-completion@2

brew install bash-completion@2 v2.17.0 GPL-2.0-or-later

Programmable completion for Bash 4.2+

679
30-day installs · #1539
2.3k
90-day · #1492
14.4k
365-day · #1242
3.5k
★ GitHub stars · updated 2mo ago

Runtime dependencies

GitHub topics

bash behavior completion shell

Links

Caveats

Add the following line to your ~/.bash_profile:
  [[ -r "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh"
Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": "Add the following line to your ~/.bash_profile:\n  [[ -r \"$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh\" ]] \u0026\u0026 . \"$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh\"\n",
  "conflicts_with": [
    "bash-completion"
  ],
  "dependencies": [
    "bash"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Programmable completion for Bash 4.2+",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:46+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bash-completion@2",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-20T13:34:56Z",
  "github_readme_excerpt": "# bash-completion\n\n[![CI](https://github.com/scop/bash-completion/actions/workflows/ci.yaml/badge.svg)](https://github.com/scop/bash-completion/actions/workflows/ci.yaml)\n[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/scop/bash-completion/badge)](https://scorecard.dev/viewer/?uri=github.com%2Fscop%2Fbash-completion)\n\n## Introduction\n\nbash-completion is a collection of command line command completions for the\n[Bash shell](https://www.gnu.org/software/bash/), collection of helper\nfunctions to assist in creating new completions, and set of facilities for\nloading completions automatically on demand, as well as installing them.\n\n## Installation\n\nThe easiest way to install this software is to use a package; refer to\n[Repology](https://repology.org/project/bash-completion) for a comprehensive\nlist of operating system distributions, package names, and available versions.\n\nDepending on the package, you may still\nneed to source it from either `/etc/bashrc` or `~/.bashrc` (or any\nother file sourcing those). If you have _only_ bash \u003e= 4.2 installed, you can\ndo this by using:\n\n```bash\n# Use bash-completion, if available, and avoid double-sourcing\n[[ $PS1 \u0026\u0026\n  ! ${BASH_COMPLETION_VERSINFO:-} \u0026\u0026\n  -f /usr/share/bash-completion/bash_completion ]] \u0026\u0026\n    . /usr/share/bash-completion/bash_completion\n```\n\nIf you have older bash versions in use, their loading of `bash_completion`\nshould be prevented. See further for more info.\n\nIf you don\u0027t have the package readily available for your distribution, or\nyou simply don\u0027t want to use one, you can install bash completion using the\nstandard commands for GNU autotools packages:\n\n```shell\nautoreconf -i      # if not installing from prepared release tarball\n./configure\nmake               # GNU make required\nmake check         # optional\nmake install       # as root\nmake installcheck  # optional, requires python3 with pytest \u003e= 3.6, pexpect\n```\n\nThese commands install the completions and helpers, as well as a\n`profile.d` scri",
  "github_repo": "scop/bash-completion",
  "github_stars": 3460,
  "github_topics": [
    "bash",
    "behavior",
    "completion",
    "shell"
  ],
  "homepage": "https://github.com/scop/bash-completion",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 679,
  "installs_365d": 14407,
  "installs_90d": 2344,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-or-later",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "bash-completion@2",
  "oldnames": [
    "bash-completion2"
  ],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1539,
  "rank_365d": 1242,
  "rank_90d": 1492,
  "raw_hash": "40210b5ae9165a25",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bash-completion@2.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "2.17.0",
  "versioned_formulae": [],
  "why_use_this": null
}