Skip to content

Instantly share code, notes, and snippets.

@lhsfcboy
Last active January 11, 2025 16:16
Show Gist options
  • Save lhsfcboy/f5802a5985a1fe95fddb43824037fe39 to your computer and use it in GitHub Desktop.
Save lhsfcboy/f5802a5985a1fe95fddb43824037fe39 to your computer and use it in GitHub Desktop.
# This is a note of https://blog.pjsen.eu/?p=440
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
@hao-lee
Copy link

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
Copy link

gh0s-t commented Feb 19, 2020

Amazing! Thanks for the solution. @hollowmaster1496

@AshutoshSajan
Copy link

thanks

@MaskeZen
Copy link

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
Copy link

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

@locopine
Copy link

@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.

@onkarabiletshele
Copy link

@locopine thanks for suggesting the last file, works like a charm

@grpnpraveen
Copy link

grpnpraveen commented Dec 20, 2021

@locopine May I know what version of git it is working for ?

@eddyizm
Copy link

eddyizm commented Jan 11, 2025

trying this with git version 2.44.0.windows.1 and even with all the files copied, tmux does not start, does not throw an error, just returns.

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