From 3b661354ca3e5da330ff32a7d9be7d10a8d4434d Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 12 Jan 2025 19:35:24 +0000 Subject: [PATCH] Name first tab 'home' & only use powershell on Windows --- wezterm.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/wezterm.lua b/wezterm.lua index 235495a..60b9972 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -1,9 +1,16 @@ local wezterm = require('wezterm') local config = wezterm.config_builder() -config.default_prog = { - 'powershell.exe', '-ExecutionPolicy', 'Bypass', '-NoLogo', '-NoExit' -} +wezterm.on('gui-startup', function() + local tab, pane, window = wezterm.mux.spawn_window({}) + tab:set_title('home') +end) + +if string.find(wezterm.target_triple, 'windows') then + config.default_prog = { + 'powershell.exe', '-ExecutionPolicy', 'Bypass', '-NoLogo', '-NoExit' + } +end config.font = wezterm.font('CaskaydiaCove Nerd Font Mono') config.font_size = 9