diff options
Diffstat (limited to 'bin/hibiki')
| -rwxr-xr-x | bin/hibiki/prompt | 8 |
1 files changed, 6 insertions, 2 deletions
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} ❱ " |