我可以自定义git自动完成吗?

发布于 2025-01-26 17:59:28 字数 324 浏览 3 评论 0原文

我想编写git chec,命中tab并使git outocomplete实际上将其自动完成到git Checkout。现在,当我这样做时,我会得到一个选项列表,并且我必须四次点击选项卡才能到达git Checkout,这基本上花费的时间比手动编写整个内容要多。

是否可以告诉git autocomplete只始终自动完成某些命令的某些输入?

注意:当我在旧的Mac上进行此操作时,我确定它已自动完成到git Checkout。 git自动完整使用机器学习会发展吗?还是我的肌肉记忆错了?

I want to write git chec, hit tab and have git autocomplete actually autocomplete it to git checkout. Now when I do this I get a list of options, and I have to hit tab four times to get to git checkout, which basically takes more time than to just write the whole thing manually.

Is it possible to tell git autocomplete to just always autocomplete certain input to certain commands?

Note: I am 99% sure it autocompleted to git checkout when I did this on my old mac. Does git autocomplete use machine learning to evolve? Or is my muscle memory just wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文