Skip to content

Instantly share code, notes, and snippets.

@ryardley
Last active June 19, 2020 15:23
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 ryardley/d4203faa73d7eaddd255 to your computer and use it in GitHub Desktop.
Save ryardley/d4203faa73d7eaddd255 to your computer and use it in GitHub Desktop.
git autocomplete part 2
if[ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@CodingMandro
Copy link

I think you also need to leave a space between if and [, otherwise you get

syntax error near unexpected token 'then'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment