From 208cfc43ee06ade3f5b4b591c49233314d50dd5f Mon Sep 17 00:00:00 2001 From: xylous Date: Sun, 30 May 2021 11:14:41 +0300 Subject: [PATCH] Use ANSI color codes instead of the zsh builtin %F{} --- gitstatus.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 gitstatus.plugin.zsh diff --git a/gitstatus.plugin.zsh b/gitstatus.plugin.zsh old mode 100644 new mode 100755 index 62acd0e..0b6e108 --- a/gitstatus.plugin.zsh +++ b/gitstatus.plugin.zsh @@ -71,9 +71,9 @@ function parse_git_status() { && GIT_DELETED="-${deleted_files} " (( ${untracked_files} > 0 )) \ && GIT_UNTRACKED="?${untracked_files}" - local fg_special='%F{yellow}' + local fg_special=$'\e[0;33m' else - local fg_special='%F{34}' + local fg_special=$'\e[01;32m' fi GIT_STATUS="${fg_special}" @@ -81,7 +81,7 @@ function parse_git_status() { GIT_STATUS+="${GIT_COMMITS_STATUS}" GIT_STATUS+="${GIT_MODIFIED}${GIT_STAGED}" GIT_STATUS+="${GIT_DELETED}${GIT_UNTRACKED}" - GIT_STATUS+="${FG_CLR}" + GIT_STATUS+=$'\e[0m' # Remove trailing whitespace GIT_STATUS="$(sed 's/[ ]+$//' <<<"$GIT_STATUS")"