From 9934cf44b2a55d71e4b7ec313afe8bdcda9ed938 Mon Sep 17 00:00:00 2001 From: hophacker Date: Sat, 1 Feb 2020 08:18:16 +0800 Subject: [PATCH] clear old usages of color --- zsh/functions.zsh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index f466058..699ad33 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -1,8 +1,4 @@ autoload colors; colors; -RED="\033[0;31m" -GREEN="\033[0;32m" -YELLOW="\033[1;33m" -NC="\033[0m" # No Color function secure_source () { if [ -e $1 ]; then @@ -197,7 +193,7 @@ function gitr() { for dir in `ls`; do if [[ -d "$dir" && -d "$dir/.git" ]]; then pushd . - echo "${GREEN}$(basename $dir)${NC}" + echo "$fg[green]$(basename $dir)$reset_color" cd $dir git $* popd @@ -330,7 +326,7 @@ function kexec { echo $fg[green]"All Pods:"$reset_color echo $ALL_PODS if [[ ${#ALL_PODS[@]} == 0 ]]; then - echo $fg[RED]"Pod not found for $PROJECT"$reset_color + echo $fg[red]"Pod not found for $PROJECT"$reset_color break fi RUNNING_PODS=($(echo $ALL_PODS | egrep "$PROJECT.* ?1/[0-9]? *Running" | awk '{print $1}'))