install tmux on windows 10

15 Nov 2022

Download and install https://www.msys2.org/#installation

If behind a firewall, compress as gz or bz2, upload a custom server and download from it, eg:

Install tmux

$ pacman -S tmux

If behinf a firewall (SSL issue), modify /etc/pacman.conf:

>> XferCommand = /usr/bin/curl --insecure -L -C - -f -o %o %u

And Git:

$ git config --global http.sslVerify false

Copy tmux and dependencies to Git for Windows path:

$ cp C:\msys64\usr\bin\tmux C:\msys64\usr\bin\msys-event* C:\Program Files\Git\usr\bin

Restart Git for Windows

Extra

If you want to keep msys2 you may want to change the $HOME directory so it points to the same place as Git for Windows, modify /etc/nsswitch.conf

db_home: windows

Happy hacking!