Created
April 7, 2023 07:03
-
-
Save xanderificnl/68570ed7944580fa738f9855bc3a6992 to your computer and use it in GitHub Desktop.
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
local wezterm = require 'wezterm' | |
local keymap = {} | |
-- Rebind tab switching | |
for i = 1, 8 do | |
table.insert(keymap, {key = tostring(i), mods = 'ALT', action = wezterm.action.ActivateTab(i - 1)}) | |
end | |
-- Rebind horizontal and vertical splits | |
table.insert(keymap, {key = 'h', mods = 'ALT', action = wezterm.action.SplitHorizontal { domain = "CurrentPaneDomain" }}) | |
table.insert(keymap, {key = 'v', mods = 'ALT', action = wezterm.action.SplitVertical { domain = "CurrentPaneDomain" }}) | |
--wezterm.log_info('Home ' .. wezterm.home_dir) | |
return { | |
default_domain = 'WSL:Ubuntu-22.04', | |
wsl_domains = { | |
{ | |
name = 'WSL:Ubuntu-22.04', | |
distribution = 'Ubuntu-22.04', | |
default_cwd = '~' | |
} | |
}, | |
color_scheme = "OneHalfDark", | |
exit_behavior = "Close", | |
keys = keymap, | |
hide_tab_bar_if_only_one_tab = true, | |
use_dead_keys = false, | |
front_end = "WebGpu" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment