문제

in my ~/.bashrc, for git I have this alias

alias g='git'

how I can use the autocompletion of git with my alias g ?

도움이 되었습니까?

해결책

Add the following line to your .bashrc file:

complete -F XXX g

where XXX should be replaced by the value following -F in the output of the following command:

complete -p git

(It is likely, but not guaranteed, that this will be _git.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top