From fa17a5238d61ebcbd65798fe03e30e18096a0041 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 7 Dec 2020 19:25:30 +0100 Subject: new theme --- bin/hibiki/prompt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/hibiki') diff --git a/bin/hibiki/prompt b/bin/hibiki/prompt index 1a4fe6f..a4ceb60 100755 --- a/bin/hibiki/prompt +++ b/bin/hibiki/prompt @@ -1,5 +1,9 @@ #!/bin/bash -GREEN="\[$(tput setaf 2)\]" +if [ "$1" == "err" ]; then + color="\[$(tput setaf 1)\]" # red +else + color="\[$(tput setaf 10)\]" +fi RESET="\[$(tput sgr0)\]" -echo "${GREEN}\w${RESET} ❱ " +echo "${color}\w${RESET} ❱ " -- cgit 1.4.1