Search code examples
gitbashwindows-8ack

Debugging Git Bash key binding and git status color issues


I installed ack via chocolately on my Windows 8 machine. This caused the following issues with Git Bash:

  1. Git output is no longer coloured. I've confirmed this with git status and git diff, neither produce colour. Other non-git commands do produce colour. This only seems to affect output from git.
  2. The Delete key now inserts a ~ character instead of deleting a character

I have tried to resolve the issue by doing the following:

  1. Uninstalling ack
  2. Uninstalling and reinstalling git bash
  3. Removing all bash configuration files from the OS. Then #2.

I have manually removed all ack depedencies that I could find. I have also manually pruned my PATH variable to ensure that it is clean and that there are no path locations that could be holding any sort of bash configuration.

This isn't actually restricted to just Git Bash. The colour issue has also affected PowerShell.

I've also noticed that running git diff now emits a warning: "WARNING: terminal is not fully functional". This warning did not appear before.

I'm not sure what else to try?

Thanks.


Solution

  • From comment debugging to answer.

    Apparently something went wrong with the $TERM variable in his environment.

    Setting $TERM to cygwin (which is the value it has on my computer) may help (and seems to have done so).