port alacritty config to wezterm
This commit is contained in:
+20
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
ln -s "$PWD/wezterm" $XDG_CONFIG_HOME/wezterm
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user