diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-06-19 12:57:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-06-19 12:57:24 -0300 |
commit | 8d37d42ad3140030a9e643a1da40c0acf8e20856 (patch) | |
tree | f298e2dd45504e0a353a5945598421b6c89f3026 | |
parent | 5af14132212c62887b6159d2ff56526e5a8e70d5 (diff) | |
download | scripts-8d37d42ad3140030a9e643a1da40c0acf8e20856.tar.gz scripts-8d37d42ad3140030a9e643a1da40c0acf8e20856.tar.bz2 |
Adds status command to timew-shell
-rwxr-xr-x | timew-shell | 7 |
1 files changed, 6 insertions, 1 deletions
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 |