How do I get bash completion to work with aliases?

后端 未结 12 1065
温柔的废话
温柔的废话 2020-11-28 00:35

Case in point:

I\'m a on mac with bash v3.2.17, I\'m using git installed via macports with the bash_completion variant.

When I type git checkout m<

12条回答
  •  清歌不尽
    2020-11-28 01:10

    If you use alias g='git', i add this line of code in .bash_aliases

    complete -o default -o nospace -F _git g
    

提交回复
热议问题