WSLtty (mintty/wsltty
)
UPDATE : WSLtty does not support WSL v2
%USERPROFILE%\AppData\Local\wsltty\bin\mintty.exe --WSL="Ubuntu-18.04" --configdir="%USERPROFILE%\AppData\Roaming\wsltty" -
- At "Target" of distro Shortcut file(s) pinned to Start Menu.
Integrated into Windows File Explorer
Folder Context menu items per Registry keys referencing a central batch script,
handling both WSLtty
and ConEmu
modes,
per environment variable; WSL_MODE
, WSL_DISTROS
(See config.bat
).
LinuxHere.cmd
Registry keys @ HKCR
[HKEY_CLASSES_ROOT\Directory\Background\shell\LinuxUbuntu]
@="Linux Ubuntu"
"Icon"="C:\\ICONS\\Apps\\Linux.Ubuntu.ico,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\LinuxUbuntu\command]
@="C:\\windows\\system32\\cmd.exe /c \"C:\\Program Files\\_unregistered\\cmd_library\\LinuxHere.cmd\" ubuntu"
- Per distro.
- Issue: No such keys set @
HKCR\Directory\shell\...
because starts at parent folder, not selected folder. Need to pass selected folder to this script. (Directory\Background
handles user select inside any folder, whereasDirectory\shell
handles user select at a selected folder.)
Install
choco install wsltty
- @
%LOCALAPPDATA%\wsltty
Installation process generates batch/shortcut scripts:
%LOCALAPPDATA%\wsltty\bin\mintty.exe -i "%ICONpath%" --WSL="%DISTROname%" --configdir="%APPDATA%\wsltty" -
Two for each installed Linux distro.
- One starting at
$HOME
dir - One staring at
%USERPROFILE%
dir
E.g.,
Ubuntu.bat
- One starting at
If not distro name, then default distro is used.
The batch/shortcut file generations require user to manually launch a post-install batch script. See
choco
report on install.
Commandline options for mintty.exe
:
- See
man mintty
(At batch, not bash, terminal.)