diff --git a/README.md b/README.md index 7dbd9d0..089da3c 100644 --- a/README.md +++ b/README.md @@ -98,31 +98,31 @@ end Type: `Boolean`, Default: `0` -- **`MSHP_GIT_STAGED_ICON`** +- **`MSHP_GIT_STATUS_STAGED_ICON`** Sets the icon that is used to indicate uncommited and staged changes in the git repo. Type: `String`, Default: `+` -- **`MSHP_GIT_UNSTAGED_ICON`** +- **`MSHP_GIT_STATUS_UNSTAGED_ICON`** Sets the icon that is used to indicate uncommited and unstaged changes in the git repo. Type: `String`, Default: `!` -- **`MSHP_GIT_UNTRACKED_ICON`** +- **`MSHP_GIT_STATUS_UNTRACKED_ICON`** Sets the icon that is used to indicate untracked files in the git repo. Type: `String`, Default: `!` -- **`MSHP_GIT_AHEAD_ICON`** +- **`MSHP_GIT_STATUS_AHEAD_ICON`** Sets the icon that is used to indicate that your local branch is ahead of the upstream branch. Type: `String`, Default: `↥` -- **`MSHP_GIT_BEHIND_ICON`** +- **`MSHP_GIT_STATUS_BEHIND_ICON`** Sets the icon that is used to indicate that your local branch is behind the upstream branch. diff --git a/src/config.rs b/src/config.rs index d10c1a6..1602627 100644 --- a/src/config.rs +++ b/src/config.rs @@ -12,11 +12,11 @@ pub struct Config { pub git_branch_color: Color, #[serde(deserialize_with = "deserialize_bool")] pub git_branch_disable: bool, - pub git_staged_icon: String, - pub git_unstaged_icon: String, - pub git_untracked_icon: String, - pub git_ahead_icon: String, - pub git_behind_icon: String, + pub git_status_staged_icon: String, + pub git_status_unstaged_icon: String, + pub git_status_untracked_icon: String, + pub git_status_ahead_icon: String, + pub git_status_behind_icon: String, #[serde(deserialize_with = "deserialize_color")] pub git_status_color: Color, #[serde(deserialize_with = "deserialize_bool")] @@ -36,11 +36,11 @@ impl Default for Config { git_branch_icon: "".to_owned(), git_branch_color: Color::Cyan, git_branch_disable: false, - git_staged_icon: "+".to_owned(), - git_unstaged_icon: "!".to_owned(), - git_untracked_icon: "?".to_owned(), - git_ahead_icon: "↥".to_owned(), - git_behind_icon: "↧".to_owned(), + git_status_staged_icon: "+".to_owned(), + git_status_unstaged_icon: "!".to_owned(), + git_status_untracked_icon: "?".to_owned(), + git_status_ahead_icon: "↥".to_owned(), + git_status_behind_icon: "↧".to_owned(), git_status_color: Color::Cyan, git_status_disable: false, user_indicator: "$".to_owned(),