Install Bash Completion on macOS

Bash completion is a set of command line command completions for the Bash shell, it contains a collection of helper functions to assist in creating new completions. It also provides a set of facilities for loading completions automatically on demand, as well as installing them.

Official Webpage:


  • Open Terminal App,
  • Type Command: brew install bash-completion
  • Once installation is complete, please add the path of to the bash profile file ~/.bash_profile
    Add the following line to your ~/.bash_profile:
      [[ -r "/opt/homebrew/etc/profile.d/" ]] && . "/opt/homebrew/etc/profile.d/"
  • Run command source ~/.bash_profile
Install bash completion on macOS

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap