-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-completion, OS X, Homebrew instructions #46
Comments
Does not work on my macOS Sierra with Git version 2.9.3 (Apple Git-75). I get errors: -bash: __git_find_subcommand: command not found
-bash: __gitcomp: command not found |
WEll for me there is just nothing. So i added the git-flow-completion.bash into /etc/bash_completion.d folder. i added this script to my .bash_profile
then reload bash
Then what ? No auto completion at all! What am i missing ? |
@erikhuizinga @manodupont My suggestion only works when you install git via brew. (I recommended installing it via brew because you can get the latest version easier.) |
I did that too.
…Sent from my iPhone
On Apr 7, 2017, at 11:32, Thomas <[email protected]<mailto:[email protected]>> wrote:
@erikhuizinga<https://github.com/erikhuizinga> @manodupont<https://github.com/manodupont> My suggestion only works when you install git via brew. (I recommended installing it via brew because you can get the latest version easier.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#46 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AHN6oZtY5blTWeVtBS9xnhp3PqsHt0z-ks5rtlcBgaJpZM4ID1JV>.
|
When installed with brew the full path should be: |
Me too after all hassle. Brew update and brew install git and brew upgrade
truly work magically!
…On Fri, 7 Apr 2017, 18:20 Thomas, ***@***.***> wrote:
When installed with brew the full path should be:
/usr/local/etc/bash_completion.d/git-flow-completion.bash. It should be
installed there when you install git (via brew).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASeikK1Ric6cpuJcJ0Ml8nt3hy_5Z4HQks5rtmI9gaJpZM4ID1JV>
.
|
I was able to fix this by relinking the newest.
|
I had to |
I just made it work! Then download this two files Now copy them to the folder
Close the terminal or source the .profile file to enable autocompletion |
@dnetix Your solution worked for me too (Sierra 10.12.6) |
@dnetix Thank you!!! Finally works. I'd been trying half-heartedly to get this working for a couple months and kept giving up. |
@dnetix Many thanks for your solution. It works great. I've been annoyed by this Git-cannot-autocomplete for about 3 months after starting my journey on Mac OS (Sierra 10.12.6 + Git 2.14.3). By the way either 'source ~/.bash_profile' or 'exec -l $SHELL' enables the autocompletion. |
another update to this little gem. |
Thank you soooo much @dnetix. Finally it works!!!! |
My usage
e.g. a jumper script # file: ~/.local/share/bash-completion/completions/git
if [ -f /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash ]; then
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
fi |
@dnetix thank you for your solution.It works for me. |
+1 hat tip for this 👌 |
+1 - ty @dnetix !! |
finally!!! Thank you @dnetix |
Thank you @dnetix! This worked great for me on OS Catalina 10.15.1 |
- Requires bash-completion (installed via Homebrew). - git-completion.bash must be manually downloaded from: https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash and copied to: $(brew --prefix)/etc/bash_completion.d/ - See bobthecow/git-flow-completion#46 for more information.
Nono of the above worked for me :( I am using macOS Catalina version 10.15.7 (19H114) @dnetix your solution gives me this error Anyone can help? |
This is quite ancient -- the .bash script is now considered deprecated, apparently -- zsh is now the default terminal on OSX it seems. |
For more recent versions of git (installed via brew), the shell script should be:
The text was updated successfully, but these errors were encountered: