dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit 13fbbac3f25b32f366b55303383391dbb1f8e175
parent 8c31c2630da134afd0249d2ae1e3c25fa902178a
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Fri, 26 Dec 2014 08:29:56 -0800

Bin: Update checkium file

Diffstat:
bin/checkium.sh | 15++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/bin/checkium.sh b/bin/checkium.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -check_color() { +checkium_color() { if [[ $? -eq 0 ]]; then echo -ne "\033[0;32m" return 0 @@ -10,7 +10,16 @@ check_color() { fi } -face() { +checkium_check() { + if [[ $? -eq 0 ]]; then + local char="✓" + else + local char="✗ " + fi + echo $char +} + +checkium_face() { if [[ $? -eq 0 ]]; then local face=":)" else @@ -19,7 +28,7 @@ face() { echo $face } -random_face() { +checkium_random_face() { if [[ $? -eq 0 ]]; then local faces=(":)" ":D") else