MAC 使用git時 不自動補全

curl  https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

# 添加到 .bash_profile 
vim ~/.bash_profile 

# 添加內容
if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi

# 保存後刷新
source ~/.bash_profile 
相關文章
相關標籤/搜索