Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
I did a little research and have found that GIT Bash uses MINGW compilation of GNU tools.
It uses only selected ones.
You can install the whole distribution of the tools from https://www.msys2.org/
and run a command to install Tmux. And then copy some files to installation folder of Git.
This is what you do:
Install before-mentioned msys2 package and run bash shell
Install tmux using the following command: pacman -S tmux
Go to msys2 directory, in my case it is C:\msys64\usr\bin
Copy tmux.exe and msys-event-2-1-4.dll to your Git for Windows directory,
mine is C:\Program Files\Git\usr\bin
@hollowmaster1496

This comment has been minimized.

Copy link

@hollowmaster1496 hollowmaster1496 commented Aug 12, 2019

Thanks for the gist.

Just a note for future lurkers. This technique doesn't work with all versions of Git Bash.
It worked for me with msys-event-2-1-6.dll and a fresh install of git v2.22.0-64-bit on Windows 10.

However, I previously had git v2.19.1-64-bit and when running tmux, got "tmux open terminal failed"

@jsbarrett

This comment has been minimized.

Copy link

@jsbarrett jsbarrett commented Oct 26, 2019

Thanks for the tip hollowmaster!
I downloaded msys2 and got tmux installed and moved to Git\usr\bin and when running tmux got no response/feedback.
Updated Git for my machine to 2.23.0 (I think before I was 2.20) and it worked like a charm.

@hao-lee

This comment has been minimized.

Copy link

@hao-lee hao-lee commented Jan 19, 2020

@jsbarrett Thanks! Save my life. After upgrading Git For Windows from 2.17 to 2.25, it works!

@gh0s-t

This comment has been minimized.

Copy link

@gh0s-t gh0s-t commented Feb 19, 2020

Amazing! Thanks for the solution. @hollowmaster1496

@AshutoshSajan

This comment has been minimized.

Copy link

@AshutoshSajan AshutoshSajan commented Aug 16, 2020

thanks

@MaskeZen

This comment has been minimized.

Copy link

@MaskeZen MaskeZen commented Mar 24, 2021

Thanks for the tip lhsfcboy, I installed mysys2 to use tmux, but is more practical the git bash for some tasks.
I also needed to copy the msys-event-2-1-7.dll file for it to work.

@bendangnuksung

This comment has been minimized.

Copy link

@bendangnuksung bendangnuksung commented Apr 15, 2021

To download msys-event-* link: http://repo.msys2.org/msys/x86_64/

@locopine

This comment has been minimized.

Copy link

@locopine locopine commented May 26, 2021

@MaskeZen, thank you very much for sharing your experience with the adjustments to get "tmux" working.
It was similar for me, but besides the msys-event-2-1-7.dll file, I needed to include the msys-event_core-2-1-7.dll file to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment