From 42d193d715cce7dabbca059d29a1360c354d7238 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 23 Aug 2023 12:09:19 +0200 Subject: [PATCH] fix(wezterm): conditional initial assignment for GLOBAL --- home/apps/wezterm/keys.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/apps/wezterm/keys.lua b/home/apps/wezterm/keys.lua index d240cfd..38087c0 100644 --- a/home/apps/wezterm/keys.lua +++ b/home/apps/wezterm/keys.lua @@ -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({