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: https://salsa.debian.org/debian/bash-completion

Installation

  • Open Terminal App,
  • Type Command: brew install bash-completion
  • Once installation is complete, please add the path of bash_completion.sh to the bash profile file ~/.bash_profile
    Add the following line to your ~/.bash_profile:
      [[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"
  • 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: rakesh@code2care.org



















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