![]() I create a new, cloned WSL instance for PowerShell tmux. I use this as the base for the tmux feature, since it has very low overhead (less than 12MB, including tmux). You don't have to enable WSL2 just WSL v1 will work fine for this (and perhaps better than WSL2). ![]() There are several ways to set this up, but here's how I'm doing it at the moment: ![]() However, you can attach multiple clients at once, as long as the original remains open. If the original session is disconnected, re-attaching will result in a broken pipe.Most of the features you'd normally expect from tmux, including: Set-window-option -g automatic-rename off In a WSL instance with tmux installed, set up your ~/.nf with: set -g default-command "cd $(pwsh.exe -c 'Write-Host -NoNewLine \$env:userprofile' | xargs -0 wslpath) exec pwsh.exe -nologo" Although it wasn't possible when this question was originally asked, with Windows Subsystem for Linux, it's now possible to use a "real" tmux to manage PowerShell windows.
0 Comments
Leave a Reply. |