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