diff --git a/install.bat b/install.bat new file mode 100644 index 0000000..4d5b8f4 --- /dev/null +++ b/install.bat @@ -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 diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..53de544 --- /dev/null +++ b/install.sh @@ -0,0 +1 @@ +ln -s "$PWD/wezterm" $XDG_CONFIG_HOME/wezterm diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua new file mode 100644 index 0000000..dfda326 --- /dev/null +++ b/wezterm/wezterm.lua @@ -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