From: Silvio Rhatto Date: Fri, 19 Jun 2020 15:57:24 +0000 (-0300) Subject: Adds status command to timew-shell X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8d37d42ad3140030a9e643a1da40c0acf8e20856;p=scripts.git Adds status command to timew-shell --- diff --git a/timew-shell b/timew-shell index 0c623f2..b662107 100755 --- a/timew-shell +++ b/timew-shell @@ -17,7 +17,12 @@ function timew_shell { # If line is not empty or commented, process command STDIN=($STDIN) - timew ${STDIN[@]} + if [ "$STDIN" == "status" ]; then + timew + else + timew ${STDIN[@]} + fi + last_exit_code="$?" fi done