Skip to content

Instantly share code, notes, and snippets.

Last active June 19, 2020 15:23
What would you like to do?
git autocomplete part 2
if[ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
Copy link

Shouldn't line 2 be . ~/.git-completion.bash to source the file per terminal?

Copy link

@r48patel thanks for that does not work otherwise

Copy link

ryardley commented Sep 6, 2019

Thats correct sorry I missed the original comment. Thanks @r48patel and @jason-adnuntius!

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