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 authored and David Peter committed 2018-10-16 22:09:15 +02:00
1 parent 278bde5cee
commit 8275b0436d
6 files changed
+96 -6

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
use directories::ProjectDirs;
lazy_static! {
pub static ref PROJECT_DIRS: ProjectDirs =
ProjectDirs::from("", "", crate_name!()).expect("Could not get home directory");
}