Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 402 Bytes

04-git-completion.md

File metadata and controls

23 lines (17 loc) · 402 Bytes

Git completion

For bash users

brew install bash-completion
echo '[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]]
  && . "/usr/local/etc/profile.d/bash_completion.sh"' >> .bash_profile

Use it

git checkout *word*

For zsh users

echo 'autoload -Uz compinit && compinit
autoload -Uz vcs_info' >> .zshrc

It will suggest all git commands, branch names.