summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-07-18 20:20:53 -0400
committerGalen Guyer <galen@galenguyer.com>2022-07-18 20:20:53 -0400
commit657934b1f408127799174984cc42932ac7bc1f83 (patch)
treedbfce1f71f1cf148a1d0ecf4e79e994f1f68cb84
parent29d50f48e12e459693528330ddb5c33273bab140 (diff)
Change global config path
-rw-r--r--src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 80c83f6..7e137a8 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -22,8 +22,8 @@ fn main() {
let env_file = match Path::new(".env").exists() {
true => Some(String::from(".env")),
false => {
- match Path::new(&dirs::home_dir().unwrap()).join(".hancock").exists() {
- true => Some(Path::new(&dirs::home_dir().unwrap()).join(".hancock").to_str().unwrap().to_owned()),
+ match Path::new(&dirs::home_dir().unwrap()).join(".hancock.conf").exists() {
+ true => Some(Path::new(&dirs::home_dir().unwrap()).join(".hancock.conf").to_str().unwrap().to_owned()),
false => None
}
}