How can I set up autocompletion for Git commands?

后端 未结 9 1523
挽巷
挽巷 2021-01-31 07:37

I have Git (version 1.7.2.5) bash compeletion working on my Debian squeeze (6.0). Git was installed with aptitude and I am using standard debian\'s bash, which supp

9条回答
  •  旧时难觅i
    2021-01-31 08:27

    Put the following lines in your ~/.bashrc

    if [ -f /etc/bash_completion ]; then
        . /etc/bash_completion
    fi
    

    The script/program /etc/bash_completion already includes the scripts in /etc/bash_completion.d and also defines some functions needed by the included scripts.

提交回复
热议问题