Skip to content

Instantly share code, notes, and snippets.

@ryardley

ryardley/gist:d4203faa73d7eaddd255 Secret

Last active Jun 19, 2020
Embed
What would you like to do?
git autocomplete part 2
if[ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
@r48patel

This comment has been minimized.

Copy link

@r48patel r48patel commented May 28, 2019

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

@jason-adnuntius

This comment has been minimized.

Copy link

@jason-adnuntius jason-adnuntius commented Sep 6, 2019

@r48patel thanks for that does not work otherwise

@ryardley

This comment has been minimized.

Copy link
Owner Author

@ryardley ryardley commented Sep 6, 2019

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

@CodingMandro

This comment has been minimized.

Copy link

@CodingMandro CodingMandro commented Jun 19, 2020

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
You can’t perform that action at this time.