62 lines
1.7 KiB
Lua
62 lines
1.7 KiB
Lua
local wezterm = require 'wezterm'
|
|
|
|
-- default Program on each machine OS
|
|
local default_prog = { "bash" }
|
|
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
|
|
default_prog = { 'pwsh' }
|
|
elseif wezterm.target_triple == 'x86_64-unknown-linux-gnu' then
|
|
default_prog = { 'fish' }
|
|
end
|
|
|
|
-- 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 = default_prog,
|
|
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.85,
|
|
-- font = wezterm.font 'FirgeNerd Console'
|
|
font = wezterm.font_with_fallback {
|
|
{
|
|
family = 'JuliaMono',
|
|
harfbuzz_features = {
|
|
'calt=0', -- disables ligature
|
|
},
|
|
},
|
|
'FirgeNerd Console', -- for japanese
|
|
'UniFont Regular',
|
|
},
|
|
}
|