-bash: __git_ps1: command not found

后端 未结 6 955
灰色年华
灰色年华 2020-12-02 10:42

I tried to install Ruby 2.0. My command line urped and now looks like the following:

-bash: __git_ps1: command not found
[11:58:28][whatever@whatever ~]$ 
         


        
6条回答
  •  甜味超标
    2020-12-02 10:58

    Run the following:

    $ curl -L https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git
    

    And add this to the top of your ~/.bashrc:

    source ~/.bash_git
    

    Re-login to your shell and you should be set.

提交回复
热议问题