-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Bash auto-complete on OSX #614
Comments
How did you install hub? Did you do any additional steps to enable tab-completion? |
I've installed hub using Homebrew (http://brew.sh/). The bash auto-complete script used on linux and OSX is the same. Here is OSX result of
Here is Linux result of
Since pressing TAB does something, then I guess hub auto-complete script works. However it appears, that none of hub-specific commands are displayed. I can see all my custom aliases though (e.g. The bash autocompletion engine was installed by Homebrew as well. |
|
Yes.
I believe auto-completion script is connected, because otherwise I'll be getting none suggestions at all. What might be happening is that |
That's unlikely. What's more likely is that Can you move |
I don't know why, but symlined version of auto-complete script from Actually I had same solution on Linux and that's why it worked. |
The symlinked version should work identically. That's the nature of |
The
however, when I run it on OSX I get this:
The Bash version on OSX is (where it doesn't work):
The Bash version on Linux is (where it works):
I guess there is something incorrect with syntax used to declare that |
Maybe |
I've just noticed that function used has |
I think I understand what's happening. I have both Hub and Git installed via Homebrew. The Hub creates |
Yes, that was it. I had this:
I removed later script and all started to work. |
Great. Thanks! |
This is not working for me, tried adding:
to my
how can I do the setup? |
@danielgomezrico Did you load git's own bash completion script before loading hub's? I don't know exactly where it is for Apple Git-63, but it should be somewhere on the system. |
@mislav you mean using something like this? https://github.com/git/git/blob/master/contrib/completion/git-completion.bash No, I tried tag with git command but theres no autocomplete for it neither. |
@danielgomezrico Well, the way to load hub's completion is to first load git's own completion (it should complete git commands in the terminal), then when you verify that works, load hub's completion and restart the shell again. |
I installed both Git and Hub through Homebrew. The auto completion worked just fine until recently.
|
Try typing this on OSX:
hub pull
and then TAB. Thepull-request
isn't available as possible option. When on Linux it works flawlessly.The pull request functionality works, it's just auto-complete that doesn't work for it.
The text was updated successfully, but these errors were encountered: