Compare commits

..

11 Commits

Author SHA1 Message Date
Gea-Suan Lin
1276b6b877 Add line_height setting. 2024-03-21 23:13:54 +08:00
Gea-Suan Lin
89df1b9089 Update fonts. 2024-03-21 23:13:37 +08:00
Gea-Suan Lin
363fab82e3 Use "Tab X" as title. 2024-03-21 23:13:12 +08:00
Gea-Suan Lin
de6780f87b Use middle click to open links. 2024-03-21 23:12:41 +08:00
Gea-Suan Lin
616b3d8dcb Just show id in tab. 2024-03-13 17:53:22 +08:00
Gea-Suan Lin
0662954103 Add version to WezTerm's window title. 2024-03-13 15:56:39 +08:00
Gea-Suan Lin
216d364d0b Just use 'WezTerm' as title. 2024-03-13 15:55:34 +08:00
Gea-Suan Lin
6b1e0710f3 Change link clicking behavior. 2024-03-13 01:14:32 +08:00
Gea-Suan Lin
f0448356e8 Enable mouse binding as we need copy selection. 2024-03-12 17:58:47 +08:00
Gea-Suan Lin
bb24154747 Update .wezterm.lua. 2024-03-12 02:28:59 +08:00
Gea-Suan Lin
35bcc04cb9 Add .wezterm.lua. 2024-03-12 01:35:56 +08:00
3 changed files with 48 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ else
export EDITOR="vim" export EDITOR="vim"
fi fi
# #
export ANDROID_SDK_ROOT=/usr/lib/android-sdk
export BLOCKSIZE="k" export BLOCKSIZE="k"
export GIT_PAGER="less" export GIT_PAGER="less"
export HISTTIMEFORMAT="%y/%m/%d %T " export HISTTIMEFORMAT="%y/%m/%d %T "

46
.wezterm.lua Normal file
View File

@@ -0,0 +1,46 @@
--
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
config.check_for_updates = false
config.color_scheme = 'Tango (terminal.sexy)'
config.font = wezterm.font_with_fallback({'Cousine', 'Noto Color Emoji', 'Noto Sans CJK JP'})
config.font_size = 18.0
config.hide_mouse_cursor_when_typing = false
config.initial_cols = 132
config.initial_rows = 43
config.line_height = 1.0
config.mouse_bindings = {
{
event = {Up = {streak = 1, button = 'Left'}},
mods = 'NONE',
action = act.CompleteSelection 'ClipboardAndPrimarySelection',
},
{
event = {Down = {streak = 1, button = 'Middle'}},
mods = 'NONE',
action = act.Nop,
},
{
event = {Up = {streak = 1, button = 'Middle'}},
mods = 'NONE',
action = act.OpenLinkAtMouseCursor,
}
}
config.window_padding = {
bottom = 0,
left = 0,
right = 0,
top = 0,
}
wezterm.on('format-tab-title', function(tab, tabs, panes, config, hover, max_width)
return 'Tab ' .. tab.tab_id
end)
wezterm.on('format-window-title', function(tab, pane, tabes, panes, config)
return 'WezTerm ' .. wezterm.version
end)
return config

1
.zshrc
View File

@@ -116,6 +116,7 @@ else
export EDITOR="vim" export EDITOR="vim"
fi fi
# #
export ANDROID_SDK_ROOT=/usr/lib/android-sdk
export BLOCKSIZE="k" export BLOCKSIZE="k"
export GIT_PAGER="less" export GIT_PAGER="less"
export HISTFILE="$HOME/.history" export HISTFILE="$HOME/.history"