-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add brew bundle
completions
#225
Conversation
Nice. To be honest, this is a section of my dotfiles I totally forgot existed, ha. Does Homebrew have any "standard" place for all of these, or did you do these manually? For that matter, was the stuff we currently have in here custom as well? I'd prefer to be able to bring in the "full list" if that exists anywhere, otherwise we can just do it ourselves! |
I just tweaked what was already there, by the looks of it it may have been copied from Homebrew zsh completions So maybe linking to that would be a better way going forward (though not sure it covers the bundle stuff) Also came across Homebrew/homebrew-completions, and of course there's zsh-users/zsh-completions and oh-my-zsh/tree/master/plugins |
You maybe want to just copypasta that in for this pull (and then maybe add some of the bundle stuff too)? I wish it were a bit easier to keep this file pinned to that one, but I doubt it changes all too frequently anyway. |
(This is a bit of a running mind dump, so hopefully can follow it) So having a little read further into my dotfiles, it seems that by way of antigen/oh-my-zsh i'm sourcing brew and brew-cask as well. antigen let's you source from any repo, so the easiest way to stay up to date with the official brew completions should be something like:
(which has the less than desirable effect of re-cloning the homebrew repo into Making use of the 'local plugin' features, we could do something like:
It looks like you're currently loading these _completion files in zsh/config, though zsh/zshrc.symlink also mentions autoload, which then runs all the It almost looks like including the _completion files loaded by the Looking at the git/completion.zsh you're manually sourcing from the homebrew zsh completions folder. It could make sense to add this to the FPATH used in Actually, fixing up git/completion.zsh so it actually runs (brew not executed when in ', _git file is a symlink so need -e instead of -f)
I get the same errors I had when trying to write a nicer 'load' function. Does this work for you? (the rbenv one seems to because the whole thing is directly in completions.zsh)
So far, cleanest solution to me (ignoring the other bugs) would be to symlink something like this in the functions folder (replacing the current
|
Seems to work for me. All of this completion stuff is kind of a black box for me; I've never really had the time to sit down and really sort things out. It's mostly — as you've seen — a bunch of things layered on top of each other, and they don't tend to work very well sometimes either (#210). |
Haha yeah, you and me both tbh. Sunk a bunch of hours into trying to write some better ones, but ultimately have about as little idea what i'm doing with it as when I started. |
Just going to go with what you have right now; we can add to it later if people would like. :) Thanks for looking into all of this! |
Sounds good to me :) No worries. |
Add `brew bundle` completions
Add `brew bundle` completions
Add `brew bundle` completions
Add `brew bundle` completions
updated osx config
Added the first level of brew bundle autocompletions. Was going to add the --params for each too, but not sure how to make it work.