【问题标题】:Git autocomplete in screen on mac osMac os 屏幕上的 Git 自动完成功能
【发布时间】:2010-10-12 04:45:59
【问题描述】:

我在 mac 上使用了 git,并且我已经按照http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/ 中的说明配置了自动完成功能,当我在纯终端中执行此操作时效果很好。

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

【问题讨论】:

  • 您可以检查screen 是否运行与您通常在终端中使用的相同的shell。
  • "echo $SHELL" 在纯终端和屏幕中显示 /bin/bash。

标签: git macos gnu-screen


【解决方案1】:

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

【讨论】:

  • 你是对的! =) 我做过“ln -s .bash_profile .bashrc”,一切都像魅力一样。谢谢!
猜你喜欢
  • 2011-06-01
  • 2018-01-27
  • 2012-07-02
  • 1970-01-01
  • 1970-01-01
  • 2014-08-05
  • 1970-01-01
  • 2011-05-08
  • 2022-08-15
相关资源
最近更新 更多