Compared with Windows cmd git-bash this kind of console tool is very useful, but the Git-bash command and function is relatively simple, the function is not easy to expand, Git-bash itself is based on Msys.
Yesterday found that using both MSYS2 and CONEMU tools, the combination of features more powerful. Conemu Support tab page, and split screen.
Specific steps:
1, MSYS2 installation, this is relatively simple, download the latest installation package from http://www.msys2.org/
MSYS2 can be installed through the Pacman command tool, this feature is relatively cool.
Generally also need to set the source of Pacman, changed into domestic Zhong ke.
There are three files in the modified MSYS64\ETC\PACMAN.D directory.
Mirrorlist.msys
Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/server = http://repo.msys2.org /msys/$archServer = http://downloads.sourceforge.net/project/msys2/repos/msys2/$arch Server = http://www2.futureware.at/~nickoe/msys2-mirror/msys/$arch/
Mirrorlist.mingw64
Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/server = http:// repo.msys2.org/mingw/x86_64Server = http://Downloads.sourceforge.net/project/msys2/repos/mingw /x86_64Server = http://www2.futureware.at/~nickoe/msys2-mirror/x86_64/server = http:// mirror.bit.edu.cn/msys2/repos/
Mirrorlist.mingw32
Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/server = http://repo.msys2.org /mingw/i686Server = http://downloads.sourceforge.net/project/msys2/repos/mingw/i686Server = http://www2.futureware.at/~nickoe/msys2-mirror/i686/
Start the MSYS2 terminal and use the Pacman-syu update
> Pacman-syu> Pacman-su
You can use Pacman installation git and other tools, so our terminal is similar to Git-bash by function.
Modify the Msys2_path_type=inherit in C:\msys64\msys2.ini to allow the open console to inherit the Windows PATH environment variable.
2. Add to right-click menu
After installing Git-bash, it is convenient to use the right-click menu to open the Bash window and go to that directory.
This functionality can also be achieved by modifying the registry.
[Hkey_classes_root\directory\background\shell] Add Item msys2, and then add command entry under MSYS2
The value of the command entry is c:\msys64\msys2_shell.bat-here
This allows you to launch the Bash window using the right-click menu.
3, install Conemu, install from https://conemu.github.io/download installation package.
Conemu Direct decompression can be used, by default Conemu can find Msys2 installation location (generally in C:\msys64)
You can launch different types of terminals by using the green plus sign on the toolbar, and select Bash:msys2-64 to start the Msys2 terminal.
However, after the start of the terminal depends on a bug,backspace key can not delete the string, in order to solve this problem, the whole afternoon, such a good tool if for such a reason can not be used, it is too bad. This issue is resolved successfully by modifying the configuration in Comenu.
Open the Conemu setting page, select {bash:msys2-64} in the task, modify the command to
Set Msys2_path_type=inherit & set chere_invoking=1 "path=c:\msys64\usr\bin ;%PATH%" &%conemubasedirshort%\conemu-msys2-. exe- t xterm -new_console:p c: \ Msys64\usr\bin\bash.exe--login -i-new_console:c:"C:\msys64\msys2.ico"
Where set Msys2_path_type=inherit allows the Windows PATH to be inherited by the startup window
\conemu-msys2-64.exe-t Xterm adds the- t xterm parameter, which solves the problem that backspace cannot use.
4. Add ConEmu to the right-click menu, where Command command is: D:\dev\ConEmu\ConEmu.exe-Here need to add-here parameter
By integrating CONEMU,MSYS2, these two tools can replace Git-bash.
The following is a split screen of Conemu
Conemu, MSYS2 tool integration for improved console productivity under Windows