File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ alias __git_branch="git branch 2>/dev/null | grep '*' | sed 's/*\ //g'"
32
32
# Modified.
33
33
_git_status() {
34
34
git branch &>/dev/null || return 1
35
- if LANG =C git status | grep -q "nothing to commit"; then
35
+ if LC_ALL =C git status | grep -q "nothing to commit"; then
36
36
printf "\e[1m@\e[0;32m$(__git_branch)\e[0m"
37
- elif LANG =C git status | grep -q "nothing added to commit"; then # Untracked
37
+ elif LC_ALL =C git status | grep -q "nothing added to commit"; then # Untracked
38
38
printf "\e[1m@\e[0;35m$(__git_branch)\e[0m"
39
39
else # Change not added/not merged yet
40
40
printf "\e[1m@$IRED$(__git_branch)\e[0m"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ alias ha='hg add .'
17
17
# Modified for hg.
18
18
_hg_status() {
19
19
if hg branch &>/dev/null
20
- then if LANG =C hg status | grep " " &>/dev/null
20
+ then if LC_ALL =C hg status | grep " " &>/dev/null
21
21
then printf "\e[1m@\e[0;32m$(hg branch)\e[0m"
22
22
else printf "\e[1m@$IRED$(hg branch)\e[0m"
23
23
fi
You can’t perform that action at this time.
0 commit comments