Skip to content

Instantly share code, notes, and snippets.

@yamanahlawat
Created July 15, 2025 05:27
Show Gist options
  • Save yamanahlawat/4ccb5d67ac8cf6db6ff9cf3b0a7f646e to your computer and use it in GitHub Desktop.
Save yamanahlawat/4ccb5d67ac8cf6db6ff9cf3b0a7f646e to your computer and use it in GitHub Desktop.
wezterm-config
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices.
config.font_size = 13
-- Key bindings
config.keys = {
-- Make Ctrl+Tab switch to last active tab (like Alt+Tab in OS)
{ key = "Tab", mods = "CTRL", action = wezterm.action.ActivateLastTab },
-- Change Ctrl+Shift+Tab to next tab (since Ctrl+Tab now goes to last active)
{ key = "Tab", mods = "CTRL|SHIFT", action = wezterm.action.ActivateTabRelative(1) },
-- Tab reordering with brackets
{ key = "{", mods = "SHIFT|ALT", action = wezterm.action.MoveTabRelative(-1) },
{ key = "}", mods = "SHIFT|ALT", action = wezterm.action.MoveTabRelative(1) },
}
-- 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