2

I've tried everything I've found on the internet but nothing seems to work. Things I've tried:

  • Instruction in the git book for bash environments
  • This medium post
  • Tried with brew install bash-completion and brew install bash-completion@2
    • With each of those versions I tried adding to .bash_profile multiple different things
  • Installing git from homebrew
  • Using only .bash_profile and then only .bashrc
  • Just copying git_completion.bash and adding the file as a source in both .bash_profile and .bashrc

From what I understood, I need git_completion.bash, but that depends on bash-completion. Is that correct? How can I check that bash-completion is working?

I need a bulletproof sequence of steps that will result on git autocomplete working on my terminal if that's even possible. If I need an initial state, like git or bash versions, or a git configuration, that'd be important to know as well.

I'm using:

  • OS: macOS Mojave 10.14.5
  • Terminal: iTerm2 Build 3.3.8
  • Git: git version 2.13.5 (Apple Git-94)
  • Bash: GNU bash, version 5.0.17(1)-release (x86_64-apple-darwin18.7.0)

Thanks!

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.