1.idea terminal modified to Git bash
Because the idea comes with the terminal tool is Windows Command Window cmd, in the development process need to use some common command operations to constantly in the idea and git bash between the switch, greatly reducing our development efficiency, So we need to find a way to both worlds-to modify the idea Terminal Command window to the Git Bash Command window.
The shell path in terminal is modified to Bash.exe under the GIT installation directory bin
2. Resolving Chinese to Unicode issues
The Chinese characters in the console after the change to Git bash are automatically converted to Unicode encoding
To solve the above problem, you need to modify the Git installation path (my installation path D:\Program files (x86) \tools\git\git\etc) BASH.BASHRC file, add the following at the end of the file:
Export lang= "ZH_CN. UTF-8 "Export lc_all=" ZH_CN. UTF-8 "
After the modification is complete, restart idea to solve the above problem.
Idea Terminal modified to Git bash does not support Chinese