.wezterm.lua
This is my default WezTerm config. It should be in ~/.wezterm.lua.
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
-- Default shell for new tabs/windows
config.default_prog = { 'pwsh.exe', '-NoLogo' }
-- Launcher menu (right-click the + tab button)
config.launch_menu = {
{ label = 'PowerShell 7', args = { 'pwsh.exe', '-NoLogo' } },
{ label = 'Ubuntu (WSL)', domain = { DomainName = 'WSL:Ubuntu' } },
{ label = 'Windows PowerShell', args = { 'powershell.exe', '-NoLogo' } },
{ label = 'Command Prompt', args = { 'cmd.exe' } },
}
-- Ctrl+Shift+Alt+U opens a new Ubuntu tab
config.keys = {
{
key = 'u',
mods = 'CTRL|SHIFT|ALT',
action = act.SpawnCommandInNewTab { domain = { DomainName = 'WSL:Ubuntu' } },
},
}
return config
List your distributions in WSL so you know what to add WSL.
wsl -l -v