blob: ba559262bb78a9415bcc7e1a968373c71e445e85 (
plain) (
blame)
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
|
//! Miscellaneous configuration options.
use std::path::PathBuf;
use alacritty_config_derive::ConfigDeserialize;
/// General config section.
///
/// This section is for fields which can not be easily categorized,
/// to avoid common TOML issues with root-level fields.
#[derive(ConfigDeserialize, Clone, PartialEq, Debug)]
pub struct General {
/// Configuration file imports.
///
/// This is never read since the field is directly accessed through the config's
/// [`toml::Value`], but still present to prevent unused field warnings.
pub import: Vec<String>,
/// Shell startup directory.
pub working_directory: Option<PathBuf>,
/// Live config reload.
pub live_config_reload: bool,
/// Offer IPC through a unix socket.
#[allow(unused)]
pub ipc_socket: bool,
}
impl Default for General {
fn default() -> Self {
Self {
live_config_reload: true,
ipc_socket: true,
working_directory: Default::default(),
import: Default::default(),
}
}
}
|