From b87e0c0f9f0727d9e38002b308e73b88eda4d772 Mon Sep 17 00:00:00 2001 From: Anthony Gelibert Date: Tue, 24 Sep 2013 22:40:19 +0200 Subject: [PATCH] Corret LC_ALL setting in git branch. --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 5f35af6..374bbef 100755 --- a/liquidprompt +++ b/liquidprompt @@ -743,7 +743,7 @@ _lp_git_branch_color() local end end="$NO_COL" - if \git status 2>/dev/null | grep -q '\(# Untracked\)'; then + if LC_ALL=C \git status 2>/dev/null | grep -q '\(# Untracked\)'; then end="$LP_COLOR_CHANGES$LP_MARK_UNTRACKED$end" fi @@ -768,7 +768,7 @@ _lp_git_branch_color() fi local shortstat - shortstat="$(LANG=C \git diff --shortstat HEAD 2>/dev/null)" + shortstat="$(LC_ALL=C \git diff --shortstat HEAD 2>/dev/null)" if [[ -n "$shortstat" ]] ; then local has_lines #has_lines=$(\git diff --numstat 2>/dev/null | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d/-%d\n", plus, minus)}')