How do I get bash completion to work with aliases?

后端 未结 12 1057
温柔的废话
温柔的废话 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:21

    Ideally I'd like autocompletion to just magically work for all my aliases. Is it possible?

    Yes, it is possible with the complete-alias project (on Linux). Support for Mac is experimental but users have reported success.

提交回复
热议问题