summaryrefslogtreecommitdiffstats
path: root/src/modules/directory.rs
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-04-10 09:22:11 -0400
committerMatan Kushner <hello@matchai.me>2019-04-10 09:22:11 -0400
commitd5493d236d402497509b7a3248dd8919bbb34c6c (patch)
treeeab7cbc2a99d817da27504b4fe851888b9b321b6 /src/modules/directory.rs
parent67ab2121c578a59c076269597d1f2fcf71af2f57 (diff)
Begin writing Node section
Diffstat (limited to 'src/modules/directory.rs')
-rw-r--r--src/modules/directory.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/directory.rs b/src/modules/directory.rs
index f7a95584f..20dcae3dc 100644
--- a/src/modules/directory.rs
+++ b/src/modules/directory.rs
@@ -16,7 +16,7 @@ use git2::Repository;
/// **Truncation**
/// Paths will be limited in length to `3` path components by default.
pub fn segment(_: &ArgMatches) -> Segment {
- const COLOR_DIR: Color = Color::Cyan;
+ const SECTION_COLOR: Color = Color::Cyan;
const DIR_TRUNCATION_LENGTH: usize = 3;
const HOME_SYMBOL: &str = "~";
@@ -49,7 +49,7 @@ pub fn segment(_: &ArgMatches) -> Segment {
Segment {
value: truncated_dir_string,
- style: Style::from(COLOR_DIR).bold(),
+ style: Style::from(SECTION_COLOR).bold(),
..Default::default()
}
}