summaryrefslogtreecommitdiffstats
path: root/src/configs/git_branch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/configs/git_branch.rs')
-rw-r--r--src/configs/git_branch.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configs/git_branch.rs b/src/configs/git_branch.rs
index b3e8f7a3b..8e4bb3caf 100644
--- a/src/configs/git_branch.rs
+++ b/src/configs/git_branch.rs
@@ -10,18 +10,20 @@ pub struct GitBranchConfig<'a> {
pub truncation_length: i64,
pub truncation_symbol: &'a str,
pub only_attached: bool,
+ pub always_show_remote: bool,
pub disabled: bool,
}
impl<'a> RootModuleConfig<'a> for GitBranchConfig<'a> {
fn new() -> Self {
GitBranchConfig {
- format: "on [$symbol$branch]($style) ",
+ format: "on [$symbol$branch]($style)(:[$remote]($style)) ",
symbol: " ",
style: "bold purple",
truncation_length: std::i64::MAX,
truncation_symbol: "…",
only_attached: false,
+ always_show_remote: false,
disabled: false,
}
}