4

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.

2
  • 1
    You might check and see if screen is running the same shell as you normally use in the terminal.
    – Amber
    Oct 12, 2010 at 4:49
  • "echo $SHELL" shows /bin/bash both in pure terminal and in screen.
    – bessarabov
    Oct 12, 2010 at 5:43

1 Answer 1

6

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.

1
  • You are right! =) I've did "ln -s .bash_profile .bashrc" and everything wokrs like a charm. Thank you!
    – bessarabov
    Oct 13, 2010 at 4:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.