From 53eca95973d0014f3b4a839ce288ebfeabd274b5 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 26 Feb 2023 17:27:12 +0100 Subject: [PATCH] install: remove `tput` dependency --- install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index d78bfde..80e13cf 100755 --- a/install.sh +++ b/install.sh @@ -142,20 +142,20 @@ nvim_plugins() { ############################################################################### if [ -t 1 ]; then - rst=$(tput sgr0) - red=$(tput setaf 1) - green=$(tput setaf 2) - yellow=$(tput setaf 3) - blue=$(tput setaf 4) - magenta=$(tput setaf 5) - cyan=$(tput setaf 6) + rst="$(printf '\033[0m')" + red="$(printf '\033[31m')" + green="$(printf '\033[32m')" + yellow="$(printf '\033[33m')" + blue="$(printf '\033[34m')" + # magenta="$(printf '\033[35m')" + cyan="$(printf '\033[36m')" else rst='' red='' green='' yellow='' blue='' - magenta='' + # magenta='' cyan='' fi