MyNixOS website logo

Extra configuration written to $XDG_CONFIG_HOME/wezterm/wezterm.lua. See https://wezfurlong.org/wezterm/config/files.html how to configure.

When used together with settings, any table returned from this Lua code is merged into the generated configuration, taking precedence over settings on conflicts. Note that this merge is shallow: a key returned here replaces the entire corresponding value from settings, so nested tables and arrays are not combined. A return statement is optional — code that directly modifies the config variable also works.

Declarations
Type
strings concatenated with "\n"
Default
""
Example
-- Your lua code / config here
local mylib = require 'mylib';
return {
  usemylib = mylib.do_fun();
  font = wezterm.font("JetBrains Mono"),
  font_size = 16.0,
  color_scheme = "Tomorrow Night",
  hide_tab_bar_if_only_one_tab = true,
  default_prog = { "zsh", "--login", "-c", "tmux attach -t dev || tmux new -s dev" },
  keys = {
    {key="n", mods="SHIFT|CTRL", action="ToggleFullScreen"},
  }
}