-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
79 lines (67 loc) · 1.62 KB
/
.wezterm.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- Pull in the wezterm API
local wezterm = require 'wezterm'
local mux = wezterm.mux
-- This will hold the configuration.
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
wezterm.on('gui-startup', function(cmd)
local tab, pane, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
config.scrollback_lines = 10000
config.use_fancy_tab_bar = false
config.colors = {
tab_bar = {
active_tab = {
bg_color = '#406d24',
fg_color = '#c0c0c0',
}
}
}
local act = wezterm.action
config.keys = {
{
key = 'LeftArrow',
mods = 'CMD',
action = act.ActivateTabRelative(-1)
},
{
key = 'RightArrow',
mods = 'CMD',
action = act.ActivateTabRelative(1)
},
{
key = 'LeftArrow',
mods = 'CMD|SHIFT',
action = act.MoveTabRelative(-1)
},
{
key = 'RightArrow',
mods = 'CMD|SHIFT',
action = act.MoveTabRelative(1)
},
{
key = 'k',
mods = 'CMD',
action = act.ClearScrollback 'ScrollbackAndViewport',
},
}
-- config.selection_word_boundary = '.,'
config.selection_word_boundary = " \t\n{}[]()\"'`:;,|"
config.mouse_bindings = {
-- Change the default click behavior so that it only selects
-- text and doesn't open hyperlinks
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'NONE',
action = act.CompleteSelection 'ClipboardAndPrimarySelection',
},
-- and make CMD-Click open hyperlinks
{
event = { Up = { streak = 1, button = 'Left' } },
mods = 'CMD',
action = act.OpenLinkAtMouseCursor,
},
}
-- and finally, return the configuration to wezterm
return config