Wezterm¶
Wezterm is an interesting terminal emulator that is configured using Lua. I’ve been using it for a while however, my config is fairly minimal.
Makefile
.PHONY: wezterm
wezterm:
test -L $(HOME)/.config/wezterm || ln -s $(shell pwd)/wezterm $(HOME)/.config/wezterm
wezterm/wezterm.lua
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
Appearance¶
Choose a font
wezterm/wezterm.lua
config.font = wezterm.font('UbuntuMono Nerd Font')
Choose a light/dark theme based on the system.
wezterm/wezterm.lua
if wezterm.gui.get_appearance():find("Dark") then
config.color_scheme = 'Modus-Vivendi'
else
config.color_scheme = 'Modus-Operandi'
end
Use the “retro” tab bar.
wezterm/wezterm.lua
config.use_fancy_tab_bar = false
Default Program¶
Rather than mess around with my user’s default shell, just tell wezterm to start fish by default instead
wezterm/wezterm.lua
config.default_prog = { '/usr/bin/fish', '-l' }
wezterm/wezterm.lua
return config