Skip to content

Instantly share code, notes, and snippets.

@hiulit
Last active June 25, 2018 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiulit/6b5bd5a6a5fd952662262397cb3001e0 to your computer and use it in GitHub Desktop.
Save hiulit/6b5bd5a6a5fd952662262397cb3001e0 to your computer and use it in GitHub Desktop.
Git auto-complete on macOS Terminal

You must have brew installed

  • Open the Terminal and enter brew install bash-completion.
  • Now enter open ~/.bash_profile.
  • At the end of the file paste the code below:
# Bash completion
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment