How to configure git bash command line completion?

前端 未结 12 1441
猫巷女王i
猫巷女王i 2020-11-28 18:50

E.g. on a fresh ubuntu machine, I\'ve just run sudo apt-get git, and there\'s no completion when typing e.g. git check[tab].

I didn\'t find

12条回答
  •  日久生厌
    2020-11-28 19:45

    on my ubuntu there is a file installed here:

    source /etc/bash_completion.d/git-prompt
    

    you can follow the links into the /usr/lib/git-core folder. You can find there an instruction, how to set up PS1 or use __git_ps1

提交回复
热议问题