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

@@ -59,13 +59,15 @@ blink_timeout = 5
hide_when_typing = false
bindings = [
{ mouse = "Middle", action = "PasteSelection" },
# Shift+左键点击扩展选择(从当前选择位置到点击位置)
{ mouse = "Left", mods = "Shift", action = "ExpandSelection" },
]
[hints]
alphabet = "jfkdls;ahgurieowpq"
[[hints.enabled]]
regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|http(s?)://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\\^⟨⟩`]+'''
regex = '''(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|http(s?)://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001f\u007f-\u009f<>"\s\\^⟨⟩`]+'''
command = "open"
post_processing = true
@@ -81,5 +83,5 @@ mods = "Control|Shift"
bindings = [
# Window/Tab switching
{ key = "Tab", mods = "Control", action = "SelectNextTab" },
{ key = "Tab", mods = "Control|Shift", action = "SelectPreviousTab" },
]
{ key = "V", mods = "Command|Control", action = "ToggleViMode" }
]

View File

@@ -1,20 +1,3 @@
foreground = "#c0caf5"
background = "#24283b"
cursor_bg = "#c0caf5"
cursor_border = "#c0caf5"
cursor_fg = "#24283b"
selection_bg = "#364A82"
selection_fg = "#c0caf5"
# Normal colors
black = "#15161e"
red = "#f7768e"
green = "#9ece6a"
yellow = "#e0af68"
blue = "#7aa2f7"
magenta = "#bb9af7"
cyan = "#7dcfff"
white = "#a9b1d6"
font-family = "JetBrainsMono Nerd Font Mono"
theme = "tokyonight"

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' } }) },