Search code examples
gitautocompletebashnano

Configuring git auto completion in .bash_profile


I'm having trouble installing git auto completion into my bash profile. I've attached a version of the bash script. Does anyone know why my the auto completion in git isn't working when I save and exit nano? Thanks! enter image description here


Solution

  • you need to logout and log back in to force .bash_profile to run.

    or to try if it is working right away, run

    source ~/.git-completion.bash

    source ~/.bash_profile would also work