fix(wezterm): conditional initial assignment for GLOBAL
This commit is contained in:
parent
a026a050a6
commit
42d193d715
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ local map = function(key, mods, action)
|
||||||
end
|
end
|
||||||
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)
|
local toggleTabBar = wezterm.action_callback(function(window)
|
||||||
wezterm.GLOBAL.enable_tab_bar = not wezterm.GLOBAL.enable_tab_bar
|
wezterm.GLOBAL.enable_tab_bar = not wezterm.GLOBAL.enable_tab_bar
|
||||||
window:set_config_overrides({
|
window:set_config_overrides({
|
||||||
|
|
Loading…
Reference in a new issue