From ed475ab24b3a881ffdb3f98e05d47d88992775c2 Mon Sep 17 00:00:00 2001 From: daniel-surename Date: Wed, 30 Aug 2017 09:50:27 +0300 Subject: [PATCH] fix: git status in __fish_git_prompt_informative_status (#4365) Added and staged files weren't shown in the prompt, had a missing $ to denote variables --- share/functions/__fish_git_prompt.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish index e624b5977..65a27b9d5 100644 --- a/share/functions/__fish_git_prompt.fish +++ b/share/functions/__fish_git_prompt.fish @@ -480,10 +480,10 @@ function __fish_git_prompt_informative_status set -l x (count $changedFiles) set -l y (count (string match -r "U" -- $changedFiles)) - set -l dirtystate (math x - y) - set -l x(count $stagedFiles) + set -l dirtystate (math $x - $y) + set -l x (count $stagedFiles) set -l invalidstate (count (string match -r "U" -- $stagedFiles)) - set -l stagedstate (math x - invalidstate) + set -l stagedstate (math $x - $invalidstate) set -l untrackedfiles (command git ls-files --others --exclude-standard | wc -l | string trim) set -l info