osx - Homebrew’s `git` not using completion -



osx - Homebrew’s `git` not using completion -

when using osx’s git, after modify file can git commit <tab>, , that’ll auto finish file’s name 1 modified. however, if install newer version of git homebrew , utilize it, feature no longer works (meaning press <tab> , “asks” me file want on, including ones have no changes).

can shed lite why, , how solve that? i’d prefer using homebrew’s git, since it’s more up-to-date.

my shell zsh, , neither installing bash-completion or zsh-completions worked (even after next homebrew’s post-install instructions).

also, after installing git homebrew says

bash completion has been installed to: /usr/local/etc/bash_completion.d zsh completion has been installed to: /usr/local/share/zsh/site-functions

so shouldn’t able utilize 1 of those?

you're looking for:

brew install git bash-completion

as warpc's comment states, you'll need add together next ~/.bash_profile homebrew's bash-completion working:

if [ -f $(brew --prefix)/etc/bash_completion ]; . $(brew --prefix)/etc/bash_completion fi

the above mentioned in caveats when install bash-completion formula.

osx git autocomplete zsh

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -