diff options
author | NerdyPepper <[email protected]> | 2019-05-20 14:40:10 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-05-20 14:40:10 +0100 |
commit | 7bc593296e9a5ed693a30c92c25653d4a6cfcb54 (patch) | |
tree | fd8df34977815d0fb214d3eba6ae2c71267ba6fb /src/vcs.rs | |
parent | 9a5623a79523f5727c096870d98e2f8112d395ed (diff) |
add config opts for prompt chars
Diffstat (limited to 'src/vcs.rs')
-rw-r--r-- | src/vcs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5,7 +5,7 @@ use colored::*; | |||
5 | 5 | ||
6 | pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> { | 6 | pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> { |
7 | let current_dir = env::var("PWD").unwrap(); | 7 | let current_dir = env::var("PWD").unwrap(); |
8 | 8 | ||
9 | let mut repo: Option<Repository> = None; | 9 | let mut repo: Option<Repository> = None; |
10 | let current_path = Path::new(¤t_dir[..]); | 10 | let current_path = Path::new(¤t_dir[..]); |
11 | for path in current_path.ancestors() { | 11 | for path in current_path.ancestors() { |