[tmux.app]
tmux 3.8

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.

Updated Tested on tmux 3.88 min read

On this page
  1. How to get tmux on Windows
  2. Which way should you install tmux on Windows?
  3. Install tmux on Windows with WSL2 (recommended)
  4. Windows Terminal setup for tmux
  5. Keep tmux sessions alive in WSL2
  6. Native Windows option: psmux
  7. Install tmux with MSYS2
  8. Install tmux with Cygwin
  9. Troubleshooting tmux on Windows
  10. Next steps

How to get tmux on Windows

Quick answer

Can tmux run on Windows?

Yes, through WSL2 (Windows Subsystem for Linux). In PowerShell as administrator:

PowerShell (Administrator)
wsl --install

Restart, open Ubuntu from the Start menu, create your Linux user, then:

Ubuntu (WSL)
sudo apt update && sudo apt install tmux
tmux
Watch: install tmux on Windows 11 or 10 with WSL2, step by step, in under 3 minutes. The written guide follows below.

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

Choosing how to run tmux on Windows If you can use WSL2 (Windows 10 version 2004 or later, or Windows 11), install Linux in WSL2 and use the real tmux, version 3.4 to 3.8 depending on the distribution. If not, and you want tmux inside PowerShell or cmd, use psmux, a separate tmux-compatible program. Otherwise MSYS2 packages tmux 3.8 and Cygwin packages tmux 3.3a. Can you use WSL2? Windows 10 2004+ or 11 yes no WSL2 + Linux tmux the real tmux, 3.4 to 3.8 recommended Need it in PowerShell? native shells, no Linux yes psmux tmux-compatible, in Rust not the official tmux no MSYS2 or Cygwin real tmux on a Unix layer
Start at the top. Most people stop at the first question.
Methodtmux version you getReal tmux?RunsBest for
WSL2 + Ubuntu 26.043.6aYesLinux shellsMost people (it is what wsl --install gives you)
WSL2 + Ubuntu 24.043.4YesLinux shellsMatching an Ubuntu 24.04 server
WSL2 + Arch or Fedora 443.8YesLinux shellsThe newest tmux without building it
psmuxits own releases (3.4.0)Compatible clonePowerShell, cmdNative Windows workflows
MSYS23.8YesMSYS2 bashPeople already using MSYS2
Cygwin3.3a (3.7b in test)YesCygwin bashExisting 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.

  1. Install WSL2 and Ubuntu

    PowerShell (Administrator)
    wsl --install

    Right-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 --online shows the names, for example wsl --install -d Ubuntu-24.04, wsl --install -d archlinux or wsl --install -d FedoraLinux-44. If WSL was installed before, wsl --install only prints help: use the -d form.

  2. 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 sudo asks for. In PowerShell, wsl -l -v should list your distribution with VERSION 2.

  3. Install tmux inside Linux

    Ubuntu (WSL)
    sudo apt update && sudo apt install tmux
    tmux -V
    tmux 3.6a

    That is Ubuntu 26.04; Ubuntu 24.04 prints tmux 3.4. On Arch use sudo pacman -Syu tmux, on Fedora sudo 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.

  4. Start tmux

    Ubuntu (WSL)
    tmux new -s main

    The status line at the bottom means it works. Press Ctrl+b % to split the window, Ctrl+b d to detach, and tmux attach -t main to 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:

Windows Terminal profile command line
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 defaultWhat it doesClashes with
Alt+arrowsMove focus between Terminal panesPopular tmux binding bind -n M-Left select-pane -L
Alt+Shift+arrowsResize Terminal panesPane-resize bindings, editor shortcuts
Ctrl+V, Ctrl+CPaste; copy when text is selectedVim block selection, tmux copy-mode-vi C-v
Alt+Shift+D, Ctrl+Shift+DSplit pane, duplicate tabYour own bindings on those keys
Ctrl+Shift+WClose the Terminal paneAccidentally closing a tab that holds tmux (tmux keeps running)
Alt+Enter, F11Full screenBindings 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:

settings.json
"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:

~/.tmux.conf (inside WSL)
# 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:

%UserProfile%\.wslconfig
[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.

PowerShell
winget install psmux

It 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:

MSYS2 MSYS
pacman -Syu
pacman -S tmux
tmux -V

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

  1. Download and run setup-x86_64.exe from cygwin.com.
  2. On the package screen, search for tmux, and pick a version in the New column.
  3. 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.