Wezterm的安装和简单配置

配置文件

进入 C:\Users\xxx 目录, 创建 .wezterm.lua

配置内容

wezterm 默认用 cmd.exe, 我是 win11,希望默认用 powershell。

希望 wezterm 的主题配色,保持和 powershell 默认配色一致,也就是 Compell 主题。 目的是在频繁使用 wezterm 时,原本的根据颜色判断文件信息(尤其是WSL里的Linux下,文件和目录颜色)依然可以使用。

.wezterm.lua 配置内容为

lua 复制代码
-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This will hold the configuration.
local config = wezterm.config_builder()

-- This is where you actually apply your config choices

-- For example, changing the color scheme:
config.color_scheme = 'Campbell (Gogh)'

-- Spawn a powershell
config.default_prog = { 'powershell.exe' }

-- and finally, return the configuration to wezterm
return config
相关推荐
秋千无闻6 个月前
win10 使用wezterm替代tmux
win10·tmux·wezterm