local wez = require 'wezterm' return function ( cfg ) cfg.default_cwd = wez.home_dir cfg.inactive_pane_hsb = { saturation = 0.42, brightness = 0.69, } cfg.check_for_updates = false cfg.enable_kitty_keyboard = not wez.target_triple:find( 'windows', 1, true ) cfg.audible_bell = 'Disabled' cfg.notification_handling = 'AlwaysShow' cfg.warn_about_missing_glyphs = false cfg.visual_bell = { fade_in_duration_ms = 69, fade_out_duration_ms = 69, target = 'CursorColor', } cfg.unzoom_on_switch_pane = true cfg.scrollback_lines = 100000 cfg.quick_select_patterns = { -- file refs: extensions/foo/index.ts:124, package.json:21, package-lock.json:r176 [[(?:[.\w@~-]+/)*[.\w@~-]+\.[A-Za-z0-9]+:(?:r)?[0-9]+(?::[0-9]+)?]], -- special repo files with lines [[(?:AGENTS|README|justfile|Makefile|Dockerfile)(?:\.[A-Za-z0-9]+)?:(?:r)?[0-9]+(?::[0-9]+)?]], -- git refspecs: +pull/4/head:refs/remotes/origin/pr/4 [[\+?(?:[.\w-]+/)+[.\w.-]+:(?:[.\w-]+/)+[.\w.-]+]], -- GitHub refs: #123, owner/repo#123 [[(?:[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+)?#[0-9]+]], -- prose PR/issue refs: PR 4, issue #123 [[(?:PR|pr|Issue|issue)\s+#?[0-9]+]], -- Jira/Atlassian: KKG-123, ABC-42 [[\b[A-Z][A-Z0-9]+-[0-9]+\b]], -- npm-ish packages: typescript@6.0.3, @scope/pkg@1.2.3 [[(?:@[\w.-]+/)?[\w.-]+@[0-9][0-9A-Za-z.+~-]*]], -- CLI flags: --rebase, --delete-branch, --config=foo [[--[A-Za-z][A-Za-z0-9_-]*(?:=[^\s,;]+)?]], -- Pi/status metrics: $0.21, 80.6/s, 51m, 205ms [[$€][0-9]+(?:\.[0-9]+)?]], [[\b[0-9]+(?:\.[0-9]+)?(?:ms|s|m|h|%|/s)\b]], } -- Prefer native Wayland only when launched from a Linux Wayland session. -- Leaves X11, macOS, and Windows alone. if wez.target_triple:find( 'linux', 1, true ) and os.getenv 'WAYLAND_DISPLAY' then cfg.enable_wayland = true end cfg.font_size = 13 end