Fix typo: use colour code instead of variable
This commit is contained in:
parent
21001cab5f
commit
ff79586ace
|
@ -44,7 +44,7 @@ function gitstatus()
|
||||||
(( untracked > 0 )) \
|
(( untracked > 0 )) \
|
||||||
&& untracked="?${untracked} "
|
&& untracked="?${untracked} "
|
||||||
|
|
||||||
local output="$color"
|
local output="${color}"
|
||||||
output+=" ${branch} "
|
output+=" ${branch} "
|
||||||
output+="${commit_diffs}"
|
output+="${commit_diffs}"
|
||||||
output+="${modified}"
|
output+="${modified}"
|
||||||
|
@ -166,10 +166,10 @@ function git_determine_color()
|
||||||
{
|
{
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
if (( $i > 0 )); then
|
if (( $i > 0 )); then
|
||||||
typeset -g REPLY=$'${yellow}'
|
typeset -g REPLY=$'%F{yellow}'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
typeset -g REPLY=$'${green}'
|
typeset -g REPLY=$'%F{green}'
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue