mirror of
https://github.com/wezterm/wezterm.git
synced 2026-11-08 01:21:45 +08:00
Add font and window geometry settings to "Quick Start" example config (#6412)
* Add initial rows/cols to config quick start * Add 'docs' target to Makefile
This commit is contained in:
parent
408b2016e2
commit
7f52f05580
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: all fmt build check test
|
||||
.PHONY: all fmt build check test docs servedocs
|
||||
|
||||
all: build
|
||||
|
||||
@ -22,3 +22,8 @@ build:
|
||||
fmt:
|
||||
cargo +nightly fmt
|
||||
|
||||
docs:
|
||||
ci/build-docs.sh
|
||||
|
||||
servedocs:
|
||||
ci/build-docs.sh serve
|
||||
|
||||
@ -11,15 +11,28 @@ local wezterm = require 'wezterm'
|
||||
-- This will hold the configuration.
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
-- This is where you actually apply your config choices
|
||||
-- This is where you actually apply your config choices.
|
||||
|
||||
-- For example, changing the color scheme:
|
||||
-- For example, changing the initial geometry for new windows:
|
||||
config.initial_cols = 120
|
||||
config.initial_rows = 28
|
||||
|
||||
-- or, changing the font size and color scheme.
|
||||
config.font_size = 10
|
||||
config.color_scheme = 'AdventureTime'
|
||||
|
||||
-- and finally, return the configuration to wezterm
|
||||
-- Finally, return the configuration to wezterm:
|
||||
return config
|
||||
```
|
||||
|
||||
For more details, see:
|
||||
|
||||
- [wezterm.config_builder](lua/wezterm/config_builder.md)
|
||||
- [initial_cols](lua/config/initial_cols.md)
|
||||
- [initial_rows](lua/config/initial_rows.md)
|
||||
- [font_size](lua/config/font_size.md)
|
||||
- [color_scheme](lua/config/color_schemes.md)
|
||||
|
||||
## Configuration Files
|
||||
|
||||
`wezterm` will look for a [lua](https://www.lua.org/manual/5.3/manual.html)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user