Install guide · Windows 10 & 11
Install tmux on Windows
tmux is a Unix program and has no official Windows build, but you can run the real tmux on Windows 10 and 11 in a few minutes with WSL2: run wsl --install in an administrator PowerShell, restart, then sudo apt install tmux in Ubuntu. If you want something that runs directly in PowerShell instead, there is psmux, a separate tmux-compatible program. MSYS2 and Cygwin also package tmux.
On this page
How to get tmux on Windows
Quick answer
Can tmux run on Windows?
Yes, through WSL2 (Windows Subsystem for Linux). In PowerShell as administrator:
wsl --installRestart, open Ubuntu from the Start menu, create your Linux user, then:
sudo apt update && sudo apt install tmux
tmuxWhich way should you install tmux on Windows?
For almost everyone the answer is WSL2: it runs the actual tmux on a real Linux kernel, so every key binding, plugin and script on this site works unchanged. The other options are for when WSL2 is not available or you want tmux inside Windows' own shells.
| Method | tmux version you get | Real tmux? | Runs | Best for |
|---|---|---|---|---|
| WSL2 + Ubuntu 26.04 | 3.6a | Yes | Linux shells | Most people (it is what wsl --install gives you) |
| WSL2 + Ubuntu 24.04 | 3.4 | Yes | Linux shells | Matching an Ubuntu 24.04 server |
| WSL2 + Arch or Fedora 44 | 3.8 | Yes | Linux shells | The newest tmux without building it |
| psmux | its own releases (3.4.0) | Compatible clone | PowerShell, cmd | Native Windows workflows |
| MSYS2 | 3.8 | Yes | MSYS2 bash | People already using MSYS2 |
| Cygwin | 3.3a (3.7b in test) | Yes | Cygwin bash | Existing Cygwin setups |
Versions on 28 October 2026 from Launchpad, archlinux.org, packages.fedoraproject.org, packages.msys2.org, cygwin.com and github.com/psmux/psmux. The default wsl --install distribution is Ubuntu 26.04, per Microsoft's WSL distribution list on the same date.
Install tmux on Windows with WSL2 (recommended)
WSL2 needs Windows 11, or Windows 10 version 2004 (build 19041) or later, with virtualization enabled in the BIOS/UEFI (it is on most PCs). Check your version with Win+R, winver.
Install WSL2 and Ubuntu
PowerShell (Administrator)wsl --installRight-click the Start button, choose Terminal (Admin) or Windows PowerShell (Admin), and run it. It enables WSL, installs the Linux kernel and installs Ubuntu (26.04 LTS today). Want a different distribution?
wsl --list --onlineshows the names, for examplewsl --install -d Ubuntu-24.04,wsl --install -d archlinuxorwsl --install -d FedoraLinux-44. If WSL was installed before,wsl --installonly prints help: use the-dform.Restart and create your Linux user
Restart when asked. Ubuntu opens (or start it from the Start menu) and asks for a username and password. These are for Linux only; the password is what
sudoasks for. In PowerShell,wsl -l -vshould list your distribution withVERSION 2.Install tmux inside Linux
Ubuntu (WSL)sudo apt update && sudo apt install tmux tmux -V tmux 3.6aThat is Ubuntu 26.04; Ubuntu 24.04 prints
tmux 3.4. On Arch usesudo pacman -Syu tmux, on Fedorasudo dnf install tmux(both 3.8). For 3.8 on Ubuntu, build it from source: it takes under a minute and works the same in WSL.Start tmux
Ubuntu (WSL)tmux new -s mainThe status line at the bottom means it works. Press Ctrl+b % to split the window, Ctrl+b d to detach, and
tmux attach -t mainto come back. New to tmux? Start with sessions and the cheat sheet.
Windows Terminal setup for tmux
Windows Terminal is the default terminal on Windows 11 and the best host for WSL tmux: it supports 24-bit color, mouse input and OSC 52 clipboard writes. A few settings make it work well with tmux.
Open straight into a tmux session
In Settings → Profiles → Ubuntu → Command line (or commandline in settings.json), use:
wsl.exe -d Ubuntu -e tmux new-session -A -s main-A attaches to the session main if it exists and creates it if not, so every new tab joins the same session. Use the distribution name shown by wsl -l -v after -d.
Key conflicts between Windows Terminal and tmux
The tmux prefix Ctrl+b is free: Windows Terminal does not bind it. But Windows Terminal handles these default shortcuts itself, before tmux or Vim sees them:
| Windows Terminal default | What it does | Clashes with |
|---|---|---|
| Alt+arrows | Move focus between Terminal panes | Popular tmux binding bind -n M-Left select-pane -L |
| Alt+Shift+arrows | Resize Terminal panes | Pane-resize bindings, editor shortcuts |
| Ctrl+V, Ctrl+C | Paste; copy when text is selected | Vim block selection, tmux copy-mode-vi C-v |
| Alt+Shift+D, Ctrl+Shift+D | Split pane, duplicate tab | Your own bindings on those keys |
| Ctrl+Shift+W | Close the Terminal pane | Accidentally closing a tab that holds tmux (tmux keeps running) |
| Alt+Enter, F11 | Full screen | Bindings on M-Enter or F11 |
To give a key back to tmux, add an unbound entry to the keybindings list in settings.json (Settings → Open JSON file), as Microsoft's actions documentation shows:
"keybindings": [
{ "id": "unbound", "keys": "alt+left" },
{ "id": "unbound", "keys": "alt+right" },
{ "id": "unbound", "keys": "ctrl+v" }
]If you unbind Ctrl+V, paste with Ctrl+Shift+V or a right-click.
Copy from tmux to the Windows clipboard
Usually nothing to do: tmux's default set-clipboard external sends copied text to Windows Terminal with OSC 52, and Windows Terminal puts it on the Windows clipboard. If your terminal does not support that, pipe copies to clip.exe, which WSL can run directly:
# Send every tmux copy to the Windows clipboard
set -s copy-command 'clip.exe'
# prefix P: paste the Windows clipboard into the current pane
bind P run "powershell.exe -NoProfile -c Get-Clipboard | tr -d '\r' | tmux load-buffer - && tmux paste-buffer"Both lines parse on tmux 3.4 and 3.8. Windows Terminal's own paste (Ctrl+Shift+V or right-click) also works inside tmux. More in the clipboard guide.
Fonts and colors
For status-bar themes with icons, install a Nerd Font (for example JetBrains Mono Nerd Font) in Windows and select it under Profiles → Ubuntu → Appearance → Font face. For 24-bit color in Neovim, add set -as terminal-features ",xterm-256color:RGB" to ~/.tmux.conf (details).
Keep tmux sessions alive in WSL2
tmux keeps your programs running when you close a tab, but WSL itself may shut down. By default WSL stops a distribution once it has been idle for 15 seconds (instanceIdleTimeout, 15000 ms), for example after you close its last terminal tab, and a detached tmux server can go down with it. To keep it running, create %UserProfile%\.wslconfig in Windows:
[general]
instanceIdleTimeout=-1
[wsl2]
memory=8GB-1 disables the automatic shutdown. The optional memory line caps WSL's RAM (the default is 50% of your PC's memory). Run wsl --shutdown once in PowerShell so the file is read; settings come from Microsoft's WSL configuration reference. Windows 11 also has a vmIdleTimeout under [wsl2] (60000 ms by default) for the VM itself, and the WSL Settings app in the Start menu edits the same file.
Three things still end your sessions: wsl --shutdown, a Windows restart, and a Windows update reboot. To restore windows and layouts after those, use tmux-resurrect and tmux-continuum.
Native Windows option: psmux
psmux is a terminal multiplexer for Windows written in Rust that speaks tmux's command language. It runs directly in PowerShell, cmd and Windows Terminal using Windows' ConPTY, with no WSL, Cygwin or MSYS2. It is not the official tmux: it is a separate MIT-licensed project that reimplements tmux's commands, and its version numbers (3.4.0, released 13 October 2026) are its own, not tmux versions.
winget install psmuxIt is also on Scoop (scoop bucket add psmux https://github.com/psmux/scoop-psmux, then scoop install psmux), Chocolatey (choco install psmux) and crates.io (cargo install psmux). It installs psmux, pmux and tmux commands, uses Ctrl+b as the prefix, and reads the first of ~/.psmux.conf, ~/.psmuxrc, ~/.tmux.conf or ~/.config/psmux/psmux.conf. Its documentation says most .tmux.conf lines work as-is and lists the differences. Requirements: Windows 10 or 11, PowerShell 7 recommended.
We have not tested psmux ourselves (this site's tests run on Linux), so treat compatibility claims as the project's own. Choose it if your work lives in PowerShell; choose WSL2 if you want the tmux that the rest of this site documents. Comparison: tmux alternatives.
Install tmux with MSYS2
MSYS2 is a Unix-like environment for Windows (it needs 64-bit Windows 10 version 1809 or later). Its msys repository has the real tmux, at 3.8 on 28 October 2026. Install MSYS2, open the MSYS2 MSYS terminal, then:
pacman -Syu
pacman -S tmux
tmux -Vpacman -Syu may close the window to finish updating itself; reopen it and run the rest. Run tmux in MSYS2's own terminal (mintty), or add MSYS2 to Windows Terminal with the command line C:/msys64/msys2_shell.cmd -defterm -here -no-start -msys (from the MSYS2 terminals guide). tmux there sees MSYS2's Unix layer, not Linux: Windows programs, paths such as /c/Users and some process handling behave differently than in WSL2.
What about Git Bash?
Git for Windows' Git Bash is built on MSYS2's runtime but does not include tmux or pacman. Guides that copy tmux.exe and its DLLs from MSYS2 into Git's folder rely on matching runtime versions and break on updates; install MSYS2 or use WSL2 instead.
Install tmux with Cygwin
Cygwin also packages the real tmux, but its stable package is old: 3.3a, with 3.7b available as a test version, and the package is currently marked as orphaned (no maintainer) on cygwin.com.
- Download and run
setup-x86_64.exefrom cygwin.com. - On the package screen, search for
tmux, and pick a version in the New column. - Finish setup, open the Cygwin terminal and check with
tmux -V.
From an existing Cygwin install you can also add it without the GUI: setup-x86_64.exe -q -P tmux. Pick Cygwin only if you already depend on it; WSL2 gives you a newer tmux with fewer surprises.
Troubleshooting tmux on Windows
Can tmux run on Windows?
Yes. The recommended way is WSL2 on Windows 10 or 11: wsl --install in an administrator PowerShell, restart, then sudo apt install tmux in Ubuntu. MSYS2 and Cygwin package the real tmux too, and psmux is a separate tmux-compatible program that runs in PowerShell.
Is there a tmux.exe download for Windows?
Not from the tmux project. Its official binaries are for Linux and macOS only; inside WSL2 you can use the Linux one. A native tmux command for PowerShell comes from psmux, which is a different program.
Can I run tmux in PowerShell or cmd?
Not the official tmux. You can start WSL's tmux from PowerShell with wsl tmux (or wsl -e tmux new -A -s main), which runs Linux shells inside it. For PowerShell sessions inside the multiplexer, use psmux.
wsl --install fails, or says WSL 2 requires an update to its kernel component
Run wsl --update in an administrator PowerShell, then wsl --status. Error 0x80370102 means virtualization is off: enable Intel VT-x or AMD-V (SVM) in your BIOS/UEFI. If the install hangs at 0.0%, try wsl --install --web-download -d Ubuntu.
no server running on /tmp/tmux-1000/default
There is no tmux server, usually because WSL shut down and took it with it. Start a new one with tmux new -s main, and stop WSL shutting down idle distributions with instanceIdleTimeout=-1. More on this error in the sessions guide.
Ctrl+b or Alt shortcuts do nothing
Ctrl+b is not used by Windows Terminal, so check that you are actually inside tmux (the status line is visible). Alt+arrow and Ctrl+V are taken by Windows Terminal: unbind them. In the older console host (conhost.exe), switch to Windows Terminal.
Colors or icons look wrong
Use Windows Terminal rather than the old console, pick a Nerd Font for icon themes, and add set -as terminal-features ",xterm-256color:RGB" for 24-bit color. Then run tmux kill-server so the server restarts with the new setting.
How do I update tmux in WSL?
Use the distribution's package manager (sudo apt update && sudo apt upgrade), then tmux kill-server so the new version is used. Ubuntu stays on the same tmux version within a release; see upgrading tmux for how to get 3.8.
Next steps
Keep learning
Something wrong or out of date on this page? Email hello@tmux.app and we will fix it.