wezterm 自用配置,修改默认打开终端

博客介绍了修改配置文件的操作,若文件不存在则需创建。还给出官方推荐,可选择一种路径存放配置文件,程序会按顺序查找,详情可查看官网说明。

效果图:
在这里插入图片描述

修改配置文件(如果没有则,创建配置文件)$HOME/.config/wezterm/wezterm.lua

官方推荐提示:
The recommendation is to place your configuration file at $HOME/.wezterm.lua (%HOME%/.wezterm.lua on Windows) to get started.

选择其中一种路径存放配置文件即可,程序会按顺去去找配置文件的,详情看官网说明。

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This table will hold the configuration.
local config = {}

-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
  config = wezterm.config_builder()
end

-- This is where you actually apply your config choices
config.font = wezterm.font('FiraCode Nerd Font')
-- You can specify some parameters to influence the font selection;
-- for example, this selects a Bold, Italic font variant.
-- config.font = wezterm.font('JetBrains Mono', { weight = 'Bold', italic = true })

-- Change the default shell when open
config.set_environment_variables = {
  -- default launching program
  -- COMSPEC = 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe',
  -- COMSPEC = 'C:\\Program Files\\nu\\bin\\nu.exe',
  COMSPEC = 'D:\\Apps\\Git\\bin\\bash.exe'
}


-- For example, changing the color scheme:
-- config.color_scheme = 'Github Dark'

-- and finally, return the configuration to wezterm
return config

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值