summaryrefslogtreecommitdiff
path: root/plugins/fossil/fossil.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/fossil/fossil.plugin.zsh')
-rw-r--r--plugins/fossil/fossil.plugin.zsh5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/fossil/fossil.plugin.zsh b/plugins/fossil/fossil.plugin.zsh
index a2123f415..fadf6095d 100644
--- a/plugins/fossil/fossil.plugin.zsh
+++ b/plugins/fossil/fossil.plugin.zsh
@@ -13,12 +13,11 @@ ZSH_THEME_FOSSIL_PROMPT_DIRTY=" %{$fg_bold[red]%}✖"
ZSH_THEME_FOSSIL_PROMPT_CLEAN=" %{$fg_bold[green]%}✔"
function fossil_prompt_info() {
- local info=$(fossil branch 2>&1)
+ local branch=$(fossil branch current 2>&1)
# if we're not in a fossil repo, don't show anything
- ! command grep -q "use --repo" <<< "$info" || return
+ ! command grep -q "use --repo" <<< "$branch" || return
- local branch=$(echo $info | grep "* " | sed 's/* //g')
local changes=$(fossil changes)
local dirty="$ZSH_THEME_FOSSIL_PROMPT_CLEAN"