Skip to content

Instantly share code, notes, and snippets.

@aziyan99
Last active February 21, 2024 07:58
Show Gist options
  • Save aziyan99/a297c17b3bd8e1b8dec67ebd78843965 to your computer and use it in GitHub Desktop.
Save aziyan99/a297c17b3bd8e1b8dec67ebd78843965 to your computer and use it in GitHub Desktop.
wezterm config
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
-- Add full screen key binding
config.keys = {
{
key = 'f',
mods = 'SHIFT|CTRL',
action = wezterm.action.ToggleFullScreen,
},
{
key = 'h',
mods = 'SHIFT|CTRL|ALT',
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
},
{
key = 'v',
mods = 'SHIFT|CTRL|ALT',
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
},
}
-- window padding
config.window_padding = {
left = 2,
right = 2,
top = 0,
bottom = 0,
}
config.hide_tab_bar_if_only_one_tab = true
-- Spawn a pwsh shell in login mode
config.default_prog = { 'C:\\Program Files\\PowerShell\\7\\pwsh.exe', '-l' }
-- and 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