From 3939bdcad77c9df0f70503da35f962deccacb1d0 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 22 Jun 2022 00:36:53 -0700 Subject: [PATCH] upd: add support for colors in termux (android) --- .config/shell/bin/upd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/shell/bin/upd b/.config/shell/bin/upd index 9df22fe..4f999f8 100755 --- a/.config/shell/bin/upd +++ b/.config/shell/bin/upd @@ -12,6 +12,9 @@ fi if command -v tput > /dev/null; then GREEN="$(tput setaf 2)" NC="$(tput sgr0)" +elif [ -n "$TERMUX_VERSION"] + GREEN="" + NC="(B" fi # `git pull` everything mentioned in the REPOS_TO_UPDATE variable