Last active
January 18, 2023 20:47
-
-
Save jshbrntt/9c8bf3ecfb1c2c3a72268339f67716fc to your computer and use it in GitHub Desktop.
WezTerm Config - Windows Terminal Shortcuts
This file contains 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 wsl_domains = wezterm.default_wsl_domains() | |
for idx, dom in ipairs(wsl_domains) do | |
dom.default_cwd = "~" | |
end | |
return { | |
wsl_domains = wsl_domains, | |
default_domain = "WSL:Debian", | |
color_scheme = "Base16 Dark Chalk", | |
window_close_confirmation = "NeverPrompt", | |
font_size = 10.0, | |
font = wezterm.font("Iosevka Term"), | |
scrollback_lines = 10000, | |
color_schemes = { | |
["Base16 Dark Chalk"] = { | |
foreground = "#d0d0d0", | |
background = "#151515", | |
cursor_bg = "#d0d0d0", | |
cursor_fg = "#151515", | |
cursor_border = "#d0d0d0", | |
selection_fg = "#d0d0d0", | |
selection_bg = "#303030", | |
scrollbar_thumb = "#d0d0d0", | |
split = "#d0d0d0", | |
ansi = { | |
"#151515", | |
"#fb9fb1", | |
"#acc267", | |
"#ddb26f", | |
"#6fc2ef", | |
"#e1a3ee", | |
"#12cfc0", | |
"#d0d0d0", | |
}, | |
brights = { | |
"#505050", | |
"#fb9fb1", | |
"#acc267", | |
"#ddb26f", | |
"#6fc2ef", | |
"#e1a3ee", | |
"#12cfc0", | |
"#f5f5f5", | |
} | |
} | |
}, | |
-- Same key bindings as Windows Terminal | |
keys = { | |
{ key = "n", mods = "CTRL|SHIFT", action=wezterm.action{SpawnCommandInNewWindow={domain="CurrentPaneDomain", cwd="~"}} }, | |
{ key = "t", mods = "CTRL|SHIFT", action=wezterm.action{SpawnCommandInNewTab={domain="CurrentPaneDomain", cwd="~"}} }, | |
{ key = "_", mods = "ALT|SHIFT", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain", cwd="~"}} }, | |
{ key = "+", mods = "ALT|SHIFT", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain", cwd="~"}} }, | |
{ key = "z", mods = "ALT", action="TogglePaneZoomState" }, | |
{ key = "LeftArrow", mods = "ALT", action=wezterm.action{ActivatePaneDirection="Left"} }, | |
{ key = "DownArrow", mods = "ALT", action=wezterm.action{ActivatePaneDirection="Down"} }, | |
{ key = "UpArrow", mods = "ALT", action=wezterm.action{ActivatePaneDirection="Up"} }, | |
{ key = "RightArrow", mods = "ALT", action=wezterm.action{ActivatePaneDirection="Right"} }, | |
{ key = "LeftArrow", mods = "ALT|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}} }, | |
{ key = "DownArrow", mods = "ALT|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}} }, | |
{ key = "UpArrow", mods = "ALT|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}} }, | |
{ key = "RightArrow", mods = "ALT|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}} }, | |
{ key = "1", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=0} }, | |
{ key = "2", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=1} }, | |
{ key = "3", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=2} }, | |
{ key = "4", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=3} }, | |
{ key = "5", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=4} }, | |
{ key = "6", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=5} }, | |
{ key = "7", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=6} }, | |
{ key = "8", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=7} }, | |
{ key = "9", mods = "CTRL|ALT", action=wezterm.action{ActivateTab=8} }, | |
{ key = "w", mods = "CTRL|SHIFT", action=wezterm.action{CloseCurrentPane={confirm=false}} }, | |
{ key = "l", mods = "CTRL", action=wezterm.action{ClearScrollback="ScrollbackAndViewport"} }, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment