diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-09-22 00:10:48 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-10-02 21:38:07 +0200 |
commit | 51089cfeed1adfd741d8dcbe6c9cb9376f88a576 (patch) | |
tree | daf97f64f3236b99b8593f62f2d2864882ac88b0 /alacritty/src/config/terminal.rs | |
parent | c899208e15c8987480912794d66358ea2581fc39 (diff) | |
download | r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.gz r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.bz2 r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.zip |
Move root config fields to `[general]` section
Some users struggle with TOML, since root options must always be at the
top of the file, since they're otherwise associated with the last table.
To avoid misunderstandings, all root-level fields have been removed. A
new `general` section was added to allow housing configuration options
that do not fit into any more specific groups.
Closes #7906.
Diffstat (limited to 'alacritty/src/config/terminal.rs')
-rw-r--r-- | alacritty/src/config/terminal.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/alacritty/src/config/terminal.rs b/alacritty/src/config/terminal.rs index b41af5db..d0c0d9da 100644 --- a/alacritty/src/config/terminal.rs +++ b/alacritty/src/config/terminal.rs @@ -4,12 +4,14 @@ use toml::Value; use alacritty_config_derive::{ConfigDeserialize, SerdeReplace}; use alacritty_terminal::term::Osc52; -use crate::config::ui_config::StringVisitor; +use crate::config::ui_config::{Program, StringVisitor}; -#[derive(ConfigDeserialize, Default, Copy, Clone, Debug, PartialEq)] +#[derive(ConfigDeserialize, Default, Clone, Debug, PartialEq)] pub struct Terminal { /// OSC52 support mode. pub osc52: SerdeOsc52, + /// Path to a shell program to run on startup. + pub shell: Option<Program>, } #[derive(SerdeReplace, Default, Copy, Clone, Debug, PartialEq)] |