1

I have Git Bash and WSL Bash installed. Currently bash command is associated to WSL Bash. Can I link it to Git bash instead?

Max
  • 125
  • 7
  • You would have to change order of the paths within your PATH variable. Have you tried that? – Ramhound Jul 27 '20 at 16:46
  • @Ramhound WSL Bash is located in the System32 folder, which is not included in PATH variable of my machine – Max Jul 27 '20 at 19:38
  • I will repeat my suggestion since your last comment does not really answer the question I raised. The path to GIT bash should be the first entry in the system variable, this will make it so Git bash is the first application found, instead of WSL bash.exe. – Ramhound Jul 27 '20 at 20:16
  • @Ramhound Yeah, I tried. It doesn't work even if I put `C:\Program Files\Git\usr\bin\` to the first row of PATH variable. – Max Jul 28 '20 at 15:36
  • 1
    Does this answer your question? [Windows: How to make cygwin bash.exe to take precedence over wsl in command line?](https://superuser.com/questions/1733124/windows-how-to-make-cygwin-bash-exe-to-take-precedence-over-wsl-in-command-line) – Henke Aug 03 '22 at 16:41

0 Answers0