📜  git 自动完成分支名称 mac - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:07.441000             🧑  作者: Mango

代码示例1
# add following line to ~/.zshrc file & restart your Terminal application:
autoload -Uz compinit && compinit

# Alternatively, you can run following two commands in your Terminal 
# application to add necessary line to .zshrc file and restart your shell.

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

# Git tab autocomplete is now enabled on your Mac.