about 7 years ago

[Mac OS] 如何加入 git auto completion


  1. Install bash git completion

    brew install git bash-completion
    
  2. 修改 ~/.bash_profile,加入以下內容

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

__git_ps1 command not found 錯誤的解決方法


← Show Git Branch in Bash Prompt [c#] Dispose, Destructor and Finalize →
 
comments powered by Disqus