]> gitweb.fluxo.info Git - scripts.git/commitdiff
Adds status command to timew-shell
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Jun 2020 15:57:24 +0000 (12:57 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 19 Jun 2020 15:57:24 +0000 (12:57 -0300)
timew-shell

index 0c623f270a5e2baf9f95192b00e04b0951c2db00..b662107b145f2d9af583ed1a5989605251cffc85 100755 (executable)
@@ -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