summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-07 00:19:50 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-07 00:19:50 -0500
commit027220e285fe259175a41a45092b4504fb38b195 (patch)
tree01637bb4e88755fd6c108d7392e43b644e3b0490
parent87e0223e644f182b31be6444806c13d23288586c (diff)
[skip travis] Update documentation for config.
-rw-r--r--README.md2
-rw-r--r--src/constants.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1a06f7ff..e4166ec1 100644
--- a/README.md
+++ b/README.md
@@ -92,7 +92,7 @@ Run using `btm`.
- `-R`, `--regex` will default to using regex.
-when searching processes.
+- `-C`, `--config` takes in a file path leading to a TOML file, where one can set flags by default. The default path this will check is, on Linux, `~/.config/btm/btm.toml`. Options are the same as the long names as other flags (ie: `regex = true`). See the sample config for an example.
### Keybindings
diff --git a/src/constants.rs b/src/constants.rs
index 2dbb546d..cc7d690c 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -6,7 +6,7 @@ pub const MAX_KEY_TIMEOUT_IN_MILLISECONDS: u128 = 1000;
pub const NUM_COLOURS: i32 = 256;
// Config and flags
-pub const DEFAULT_CONFIG_FILE_PATH: &str = "~/.config/btm/btm.conf";
+pub const DEFAULT_CONFIG_FILE_PATH: &str = "~/.config/btm/btm.toml";
pub const KELVIN: &str = "kelvin";
pub const FAHRENHEIT: &str = "fahrenheit";