2

When starting up Git Bash in a Windows terminal or VScode terminal, the screen is blank for 10 - 15 seconds before it initializes to having a working directory and cursor. After init, it runs fine.

This has been happening for months. I want to resolve this without reformatting the device, yet I feel this may be coming for me.

I've searched for this on Stack Exchange / Stack Overflow but cannot find any other questions like this.

I'm on Windows 10 using the git bash terminal.

I have tried:

  • Re-booting
  • Clearing .bash_history but this had no effect.
  • Re-installed Git Bash
  • Checked processes running with ps (none running)
Ramhound
  • 44,080

2 Answers2

0

I've had issues with Git Bash being extremely slow when connected to a VPN.

Another common fix is completely removing .bash_profile in your Home directory.

Another fix is ensuring your HOME Environment Variable is set to your user folder C:\Users\YourUser.

Here's a very thorough superuser link explaining how to do that.

Matt M
  • 202
0

If you use the "set -x" command, it will show you everything that is executed.

You could add this to your "/etc/profile" file to see what happens on startup.

Use "set +x" to turn off.

Documentation is here: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html