From 11fc1ffd3d33cf511ec7b0bef7c5e9ed58e9309d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Mar 2009 12:47:33 +0100 Subject: Removed etc/colors --- etc/functions/die | 2 +- etc/functions/extr | 2 +- etc/functions/fdie | 2 +- etc/functions/info | 2 +- etc/functions/warn | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'etc/functions') diff --git a/etc/functions/die b/etc/functions/die index 5792d4b..6bee0a8 100644 --- a/etc/functions/die +++ b/etc/functions/die @@ -1,3 +1,3 @@ ## vim:ft=zsh -echo -e "${fail}${*}${reset}" > /dev/stderr +echo -e "\e[1;31m${*}\e[0m" > /dev/stderr exit 1 diff --git a/etc/functions/extr b/etc/functions/extr index 4f0100d..f335dc6 100755 --- a/etc/functions/extr +++ b/etc/functions/extr @@ -2,7 +2,7 @@ ## vim:ft=zsh function confirm_shar { - echo -ne "${warn}shar archives are shell scripts and can easily contain malicious code.${reset} Proceed? [y/N] " + echo -ne "\e[1;33mshar archives are shell scripts and can easily contain malicious code.\e[0m Proceed? [y/N] " read -q } diff --git a/etc/functions/fdie b/etc/functions/fdie index e96aeef..2cbda7a 100644 --- a/etc/functions/fdie +++ b/etc/functions/fdie @@ -1,3 +1,3 @@ ## vim:ft=zsh -echo -e "${fail}${*}${reset}" > /dev/stderr +echo -e "\e[1;31m${*}\e[0m" > /dev/stderr return 1 diff --git a/etc/functions/info b/etc/functions/info index b04951c..00a3a63 100644 --- a/etc/functions/info +++ b/etc/functions/info @@ -1 +1 @@ -echo -e "${info}${*}${reset}" +echo -e "\e[0;36m${*}\e[0m" diff --git a/etc/functions/warn b/etc/functions/warn index 4180025..789a9ef 100644 --- a/etc/functions/warn +++ b/etc/functions/warn @@ -1,2 +1,2 @@ ## vim:ft=zsh -echo -e "${warn}${*}${reset}" > /dev/stderr +echo -e "\e[1;33m${*}\e[0m" > /dev/stderr -- cgit v1.2.3