From 8d37d42ad3140030a9e643a1da40c0acf8e20856 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Jun 2020 12:57:24 -0300 Subject: Adds status command to timew-shell --- timew-shell | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3