feat: update terminal, mainly use alacritty

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2026-02-12 21:55:45 +08:00
parent 4eaabf5fb8
commit 0ca2f30750
3 changed files with 16 additions and 30 deletions

View File

@@ -1,5 +1,13 @@
local wezterm = require("wezterm")
local tmux = {}
if wezterm.target_triple == "aarch64-apple-darwin" then
tmux = { "/opt/homebrew/bin/tmux", "new", "-As0" }
else
tmux = { "tmux", "new", "-As0" }
end
return {
-- default_prog = tmux,
default_cwd = wezterm.home_dir .. "/Workbench",
font_size = 14,
font = wezterm.font_with_fallback({
@@ -16,7 +24,7 @@ return {
},
selection_word_boundary = " \t\n{}[]()\"'`=,.",
use_fancy_tab_bar = true,
-- hide_tab_bar_if_only_one_tab = true,
hide_tab_bar_if_only_one_tab = false,
color_scheme = "tokyonight",
window_decorations = "INTEGRATED_BUTTONS | RESIZE",
window_frame = {
@@ -39,14 +47,7 @@ return {
"zsh",
"fzf",
},
ssh_domains = {
{
name = "debian",
remote_address = "debian01",
username = "d0zingcat",
multiplexing = "None",
},
},
ssh_domains = {},
keys = {
--{ key = 'l', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|DOMAINS' } }) },
--{ key = 's', mods = 'CMD', action = wezterm.action({ ShowLauncherArgs = { flags = 'FUZZY|WORKSPACES' } }) },