Skip to content

Instantly share code, notes, and snippets.

@DarkVss
Created March 1, 2023 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarkVss/485fb1874b0918384e385d432972dd31 to your computer and use it in GitHub Desktop.
Save DarkVss/485fb1874b0918384e385d432972dd31 to your computer and use it in GitHub Desktop.
GIT autocomplete enabling on MACos

zsh

echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
source ~/.zshrc

bash

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
echo "\\n
if [ -f ~/.git-completion.bash ]; then \\n
  . ~/.git-completion.bash \\n
fi" >> ~/.bash_profile
chmod +x ~/.git-completion.bash
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment