Set up Git Bash in Windows Terminal
-
Open Windows Terminal
-
Enter the
Settings
page (Ctrl + ,
) -
Click the
Add a new profile
on the left bottom panel -
On the
Add a new profile
page, clickNew empty profile
orDuplicate
from an existed profile -
On the new profile page, fill the following options:
-
Name:
Git Bash
-
Command Line:
C:\Program Files\Git\bin\bash.exe -i -l
The -i -l
or--interactive --login
options will make Git Bash work on non-ASCII text well.-
Without
-i -l
:$ ls -l /tmp/hello/ total 0 -rw-r--r-- 1 ousia 197121 0 Aug 29 16:46 '□□'$'\226''□'$'\225\214'
-
With
-i -l
:$ ls -l /tmp/hello/ total 0 -rw-r--r-- 1 ousia 197121 0 Aug 29 16:46 世界
-
-
Starting Directory:
%USERPROFILE%
-
Icon:
C:\Program Files\Git\git-bash.exe
-
-
Click the
Save
on the right bottom to finish it.
To solve Git not displaying unicode file names:
You can also specify the
|