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<tab>
. for example, I get it completed to master
.
However, I've got an alias to git checkout
, gco
. When I type gco m<tab>
, I don't get the branch name autocompleted.
Ideally I'd like autocompletion to just magically work for all my aliases. Is it possible? Failing that, I'd like to manually customize it for each alias. So, how do I go about either?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…