fix(wezterm): conditional initial assignment for GLOBAL

This commit is contained in:
winston 2023-08-23 12:09:19 +02:00
parent a026a050a6
commit 42d193d715
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -14,7 +14,9 @@ local map = function(key, mods, action)
end
end
wezterm.GLOBAL.enable_tab_bar = true
if wezterm.GLOBAL.enable_tab_bar == nil then
wezterm.GLOBAL.enable_tab_bar = true
end
local toggleTabBar = wezterm.action_callback(function(window)
wezterm.GLOBAL.enable_tab_bar = not wezterm.GLOBAL.enable_tab_bar
window:set_config_overrides({