Add scrollback_lines and overwrite cwd for new tab
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
local wezterm = require("wezterm")
|
||||
local config = {}
|
||||
local act = wezterm.action
|
||||
|
||||
config.default_prog = { "/usr/bin/fish" }
|
||||
config.default_cwd = "~"
|
||||
config.initial_rows = 36
|
||||
config.initial_cols = 132
|
||||
config.scrollback_lines = 10000
|
||||
|
||||
config.font = wezterm.font({
|
||||
family = "Fira Code",
|
||||
@@ -20,4 +22,14 @@ config.window_frame = {
|
||||
font_size = 10.0,
|
||||
}
|
||||
|
||||
config.keys = {
|
||||
{
|
||||
key = "t",
|
||||
mods = "CTRL|SHIFT",
|
||||
action = act.SpawnCommandInNewTab({
|
||||
cwd = wezterm.home_dir,
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user