Skip to content

Instantly share code, notes, and snippets.

@NostraDavid
Created October 5, 2024 10:21
Show Gist options
  • Save NostraDavid/388192136826999ae25f7201393e55ad to your computer and use it in GitHub Desktop.
Save NostraDavid/388192136826999ae25f7201393e55ad to your computer and use it in GitHub Desktop.
Default Windows wezterm.lua
-- 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