-
-
Save ryardley/d4203faa73d7eaddd255 to your computer and use it in GitHub Desktop.
git autocomplete part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if[ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi |
@r48patel thanks for that does not work otherwise
Thats correct sorry I missed the original comment. Thanks @r48patel and @jason-adnuntius!
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
Shouldn't line 2 be
. ~/.git-completion.bash
to source the file per terminal?