Use zsh's builtin %F{} instead of ANSI codes
This commit is contained in:
parent
61a7b27867
commit
fb3045131b
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ function gitstatus()
|
|||
output+="$staged"
|
||||
output+="$deleted"
|
||||
output+="$untracked"
|
||||
output+=$'\e[0m'
|
||||
output+=$'%F{default}'
|
||||
|
||||
sed 's/[ ]+$//' <<<"$output" # remove trailing whitespace
|
||||
|
||||
|
@ -136,8 +136,8 @@ function git_local_remote_diffs()
|
|||
###
|
||||
function git_determine_color()
|
||||
{
|
||||
local green=$'\e[93m'
|
||||
local yellow=$'\e[92m'
|
||||
local green=$'%F{yellow}'
|
||||
local yellow=$'%F{green}'
|
||||
for i in "$@"; do
|
||||
if (( $i > 0 )); then
|
||||
typeset -g REPLY="$green"
|
||||
|
|
Loading…
Reference in a new issue