Mac 操作系统屏幕上的 Git 自动补全

发布于 2024-09-27 05:24:18 字数 292 浏览 0 评论 0原文

我在 mac 上使用 git 并配置了自动完成,如 http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/ 当我在纯终端中执行此操作时,它工作正常。

但在终端工作时我更喜欢使用 gnu screen 程序。当我按下选项卡时,屏幕上会发生注意到。也许有人知道如何解决它。

I've using git on mac and I have configured autocompletion as written at http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/ It works fine when I do it in pure terminal.

But I prefer to use gnu screen program when working in terminal. And in screen when I press tab noting happen. Maybe someone knows how to fix it.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦亦如幻 2024-10-04 05:24:18

我不使用 screen 但我认为如果你将 source ~/git-completion.bash 放入它可能会起作用
在 ~/.bashrc 中而不是 ~/.bash_profile 中声明。我不认为 screen 算作登录 shell。

I don't use screen but I think it will probably work if you put the source ~/git-completion.bash
statement in your ~/.bashrc instead of your ~/.bash_profile. I don't think screen counts as a login shell.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文