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
-


Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram