Created
October 5, 2024 10:21
-
-
Save NostraDavid/388192136826999ae25f7201393e55ad to your computer and use it in GitHub Desktop.
Default Windows wezterm.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Pull in the wezterm API | |
local wezterm = require 'wezterm' | |
-- This will hold the configuration. | |
local config = wezterm.config_builder() | |
-- Set font to JetBrains Mono NF | |
config.font = wezterm.font('JetBrainsMono Nerd Font') | |
config.font_size = 10 | |
-- Set default program to launch Windows Subsystem for Linux (WSL) | |
config.default_prog = { "wsl", "--cd", "~" } | |
-- Define key bindings for horizontal and vertical splits | |
config.keys = { | |
{ | |
key = '-', | |
mods = 'CTRL|SHIFT|ALT', | |
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, | |
}, | |
{ | |
key = '|', | |
mods = 'CTRL|SHIFT|ALT', | |
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' }, | |
}, | |
} | |
-- and finally, return the configuration to wezterm | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment