问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/3911771/git-autocomplete-in-screen-on-mac-os