add: wezterm config

This commit is contained in:
qwjyh 2023-02-20 19:17:55 +09:00
parent 6cdd51f11e
commit 5984d43f4b
2 changed files with 50 additions and 0 deletions

View file

@ -61,3 +61,7 @@ New-Item -ItemType SymbolicLink -Path ~\.config\powershell\chezmoi_completion.ps
New-Item -ItemType SymbolicLink -Path ~\.config\powershell\rustup_completion.ps1 -Target (Resolve-Path .\dotfiles\pwsh\rustup_completion.ps1) -Force New-Item -ItemType SymbolicLink -Path ~\.config\powershell\rustup_completion.ps1 -Target (Resolve-Path .\dotfiles\pwsh\rustup_completion.ps1) -Force
# starship # starship
New-Item -ItemType SymbolicLink -Path ~\.config\starship.toml -Target (Resolve-Path .\dotfiles\starship\starship.toml) -Force New-Item -ItemType SymbolicLink -Path ~\.config\starship.toml -Target (Resolve-Path .\dotfiles\starship\starship.toml) -Force
# wezterm
mkdir ~\.config\wezterm
New-Item -ItemType SymbolicLink -Path ~\.config\wezterm\wezterm.lua -Target (Resolve-Path .\dotfiles\wezterm\wezterm.lua) -Force

View file

@ -0,0 +1,46 @@
local wezterm = require 'wezterm'
-- from manual
local launch_menu = {}
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
table.insert(launch_menu, {
label = 'pwsh',
args = { 'pwsh.exe' },
})
for _, vsvers in
ipairs(wezterm.glob('Microsoft Visual Studio/20*', 'C:/Program Files (x86)'))
do
local year = vsvers:gsub('Microsoft Visual Studio/', '')
table.insert(launch_menu, {
label = 'x64 Native Tools VS ' .. year,
args = {
'cmd.exe',
'/k',
'C:/Program Files (x86)/'
.. vsvers
.. '/BuildTools/VC/Auxiliary/Build/vcvars64.bat',
},
})
end
end
return {
default_prog = { 'pwsh' },
launch_menu = launch_menu,
-- keys = {
-- {
-- key = 'P',
-- mods = 'CTRL',
-- action = wezterm.action.ActivateCommandPalette,
-- }
-- },
color_scheme = "iceberg-dark",
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
window_background_opacity = 0.8,
}