diff --git a/bin/install.ps1 b/bin/install.ps1 index 39e03b3..ab80d3a 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -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 # starship 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 + diff --git a/dotfiles/wezterm/wezterm.lua b/dotfiles/wezterm/wezterm.lua new file mode 100644 index 0000000..0bf7f3c --- /dev/null +++ b/dotfiles/wezterm/wezterm.lua @@ -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, +}