mirror of
https://github.com/wez/wezterm.git
synced 2024-11-09 22:15:15 +03:00
docs: more tweaks
This commit is contained in:
parent
38937ce1c3
commit
3ead0906a2
@ -133,33 +133,33 @@ return {
|
||||
-- The active tab is the one that has focus in the window
|
||||
active_tab = {
|
||||
-- The color of the background area for the tab
|
||||
bg_color = "#2b2042"
|
||||
bg_color = "#2b2042",
|
||||
-- The color of the text for the tab
|
||||
fg_color = "#c0c0c0"
|
||||
fg_color = "#c0c0c0",
|
||||
|
||||
-- Specify whether you want "Half", "Normal" or "Bold" intensity for the
|
||||
-- label shown for this tab.
|
||||
-- The default is "Normal"
|
||||
intensity = "Normal"
|
||||
intensity = "Normal",
|
||||
|
||||
-- Specify whether you want "None", "Single" or "Double" underline for
|
||||
-- label shown for this tab.
|
||||
-- The default is "None"
|
||||
underline = "None"
|
||||
underline = "None",
|
||||
|
||||
-- Specify whether you want the text to be italic (true) or not (false)
|
||||
-- for this tab. The default is false.
|
||||
italic = false
|
||||
italic = false,
|
||||
|
||||
-- Specify whether you want the text to be rendered with strikethrough (true)
|
||||
-- or not for this tab. The default is false.
|
||||
strikethrough = false
|
||||
strikethrough = false,
|
||||
},
|
||||
|
||||
-- Inactive tabs are the tabs that do not have focus
|
||||
inactive_tab = {
|
||||
bg_color = "#1b1032"
|
||||
fg_color = "#808080"
|
||||
bg_color = "#1b1032",
|
||||
fg_color = "#808080",
|
||||
|
||||
-- The same options that were listed under the `active_tab` section above
|
||||
-- can also be used for `inactive_tab`.
|
||||
@ -168,9 +168,9 @@ return {
|
||||
-- You can configure some alternate styling when the mouse pointer
|
||||
-- moves over inactive tabs
|
||||
inactive_tab_hover = {
|
||||
bg_color = "#3b3052"
|
||||
fg_color = "#909090"
|
||||
italic = true
|
||||
bg_color = "#3b3052",
|
||||
fg_color = "#909090",
|
||||
italic = true,
|
||||
|
||||
-- The same options that were listed under the `active_tab` section above
|
||||
-- can also be used for `inactive_tab_hover`.
|
||||
|
@ -29,7 +29,7 @@ return {
|
||||
-- ton of output and allows for the UI to remain responsive
|
||||
-- so that you can hit CTRL-C to interrupt it if desired.
|
||||
-- The default value is 200,000 bytes/s.
|
||||
ratelimit_output_bytes_per_second = 200_000,
|
||||
ratelimit_output_bytes_per_second = 200000,
|
||||
|
||||
-- Constrains the rate at which the multiplexer server will
|
||||
-- unilaterally push data to the client.
|
||||
|
@ -55,8 +55,23 @@ setting the `default_prog` configuration in your `.wezterm.lua`; for example,
|
||||
if you have extracted clink to `c:\clink_0.4.9` you might configure this:
|
||||
|
||||
```lua
|
||||
return {
|
||||
local wezterm = require 'wezterm';
|
||||
|
||||
local default_prog;
|
||||
local set_environment_variables = {}
|
||||
|
||||
if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
||||
-- Use OSC 7 as per the above example
|
||||
set_environment_variables["prompt"] = "$E]7;file://localhost/$P$E\\$E[32m$T$E[0m $E[35m$P$E[36m$_$G$E[0m "
|
||||
-- use a more ls-like output format for dir
|
||||
set_environment_variables["DIRCMD"] = "/d"
|
||||
-- And inject clink into the command prompt
|
||||
default_prog = {"cmd.exe", "/s", "/k", "c:/clink_0.4.9/clink_x64.exe", "inject", "-q"}
|
||||
end
|
||||
|
||||
return {
|
||||
default_prog = default_prog,
|
||||
set_environment_variables = set_environment_variables,
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user