diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-07 19:25:30 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-01-21 19:39:12 +0100 |
| commit | fa17a5238d61ebcbd65798fe03e30e18096a0041 (patch) | |
| tree | a27685fdedffcf91918842bd4f51df31b6d3873e /bin/hibiki/prompt | |
| parent | 1ee7dc771aa34959c265dab31c315f5add2a8837 (diff) | |
new theme
Diffstat (limited to 'bin/hibiki/prompt')
| -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} ❱ " |