port alacritty config to wezterm

This commit is contained in:
wilmc
2026-06-24 15:55:34 +02:00
parent 5a99205528
commit c0479450f6
3 changed files with 52 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
@echo off
if "%1"=="--clean" (
if exist "%USERPROFILE%\.config\wezterm" (
fsutil reparsepoint query "%USERPROFILE%\.config\wezterm" >nul 2>&1
if errorlevel 1 (
echo Deleting existing nvim directory...
rmdir /s /q "%USERPROFILE%\.config\wezterm"
) else (
echo Symlink already exists, skipping clean.
)
)
)
if not exist "%USERPROFILE%\.config\" (
mkdir "%USERPROFILE%\.config\"
)
mklink /J %USERPROFILE%\.config\wezterm .\wezterm
pause
+1
View File
@@ -0,0 +1 @@
ln -s "$PWD/wezterm" $XDG_CONFIG_HOME/wezterm
+31
View File
@@ -0,0 +1,31 @@
-- ~/.config/wezterm/wezterm.lua (or %USERPROFILE%\.config\wezterm\wezterm.lua on Windows)
local wezterm = require("wezterm")
local config = wezterm.config_builder()
-- Working directory
config.default_cwd = "C:\\Users\\wilmc\\git"
-- Shell: open VS2022 Developer Command Prompt
config.default_prog = {
"cmd.exe",
"/k",
"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\Common7\\Tools\\VsDevCmd.bat",
}
-- Window decorations
--config.window_decorations = "NONE"
-- Opacity
config.window_background_opacity = 0.8
-- Font
config.font = wezterm.font("JetBrainsMono Nerd Font", { weight = "Regular" })
-- Maximized on startup
--[[wezterm.on("gui-startup", function(cmd)
local _, _, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)]]--
return config