1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-14 01:02:25 +01:00

Add simple configuration file

This allows users to create simple configuration file
(`~/.config/bat/config` on Linux) that has the following format:

    ```bash
    --flag1
    --flag2
    --option1=value1
    # lines beginning with '#' are ignored
    --option2=value2
    # empty lines and trailing whitespace are also ignored

    --option3=value3
    ```
This commit is contained in:
sharkdp
2018-10-07 23:22:42 +02:00
committed by David Peter
parent 278bde5cee
commit 8275b0436d
6 changed files with 96 additions and 6 deletions

View File

@@ -13,11 +13,6 @@ use directories::ProjectDirs;
use errors::*;
use inputfile::{InputFile, InputFileReader};
lazy_static! {
static ref PROJECT_DIRS: ProjectDirs =
ProjectDirs::from("", "", crate_name!()).expect("Could not get home directory");
}
pub const BAT_THEME_DEFAULT: &str = "Monokai Extended";
pub struct HighlightingAssets {