Repository navigation
Add full zsh completion support - #727
mikkeloscar wants to merge 1 commit into
Conversation
|
Hey, this is awesome, especially since I use zsh :) This is a good start, but I'd really like Git LFS to generate this somehow. I'm going to hold off on this until Git LFS v1.1 though, so we can figure out how users can install this. |
|
As a new zsh user, I really liked that way I could just add support for many things like go via http://ohmyz.sh/ plugins. I wonder if we should have a way to generate a zsh config which can be submitted as a plugin there, with maybe an entry point for custom installs as well (but which has to be manually configured)? |
|
There are a couple problems here. First, the commands are doomed to be out of perpetually out of date. Second, what's installation like? "clone the repo down and copy to some directory owned by root"? I'm cool with shipping this now, with updated descriptions and command flags. But I think it'd be worth building it into the command:
Also, is there any way to get this to trigger for FWIW I happened to stumble on this project: https://github.com/bobthecow/git-flow-completion. Might be a good example that we can borrow from for bash/fish autocompletion :) EDIT: Bonus points if we somehow be added to git's autocompletions :) $ git l<tab>
$ git log # :( |
|
👍 Thinking about this overnight I was also thinking this should just be an lfs command (
Yeah, wonder if we need to send PRs to both core Git, http://ohmyz.sh/ and https://github.com/zsh-users/zsh-completions or whether there's a more efficient way? |
|
I've been exploring generating a script using this as a template: https://github.com/github/git-lfs/blob/zsh-completions/commands/command_zsh.go |
|
I believe Instead of
Would you mind throwing that on top of this PR? I want to include @mikkeloscar's work here in the commit list, since we're taking a lot of inspiration from it. |
Yeah that's what I was trying to use as a trigger to assume oh-my-zsh if given no other context.
So if
Oh yeah that's an excellent idea. Rebased & done. |
That's a good shout too, I'll do this once I've figured out a couple of other niggles. |
|
New PR at #1133 |
|
Hello, I just wanna say that I have been following the discussion here and it's fine by me if you close this PR when you want to :) Also, I'm glad that you could use some of the stuff from this PR. |
|
Thanks! If you have any ideas of how to add completions for |
This adds full zsh completion support for git-lfs. I have used the same file structure as the other PR for bash support. Let me know if I should change it in any way.
This version depends on the _git completion distributed with zsh, and it should be installed into something like:
/usr/share/zsh/site-functions/_git-lfs.