Git自动完成在Mac OS上的屏幕上

Git自动完成在Mac OS上的屏幕上

问题描述:

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

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.

但我更喜欢在终端工作时使用gnu屏幕程序。并在屏幕上,当我按标签记录发生。也许有人知道如何解决它。

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.

我不使用屏幕但我认为它可能会工作,如果你把 source〜/ git-completion.bash
语句放在〜/ .bashrc中而不是你的〜/ .bash_profile中。我不认为屏幕被视为登录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.