summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-20 21:18:38 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-20 21:18:38 +0200
commit41d3ecdd5245c8c3f8adaa76bbdca24eacd9e007 (patch)
tree6a5c95d4f926d35ef38af5da7e39a943580a6710 /bin/extra
parentf3ca3f8988c2af29c8d13b5336d1bfefb3e36c81 (diff)
checkpoint
Diffstat (limited to 'bin/extra')
-rwxr-xr-xbin/extra/clock4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/extra/clock b/bin/extra/clock
index fdffae0..bd6efd2 100755
--- a/bin/extra/clock
+++ b/bin/extra/clock
@@ -7,7 +7,8 @@ then
printf 'start,end,message\n' > "$clocks"
fi
-if [ "$1" = "-c" ]
+# print clocks file prettily
+if [ "$1" = "-p" ]
then
# empty
[ "$(wc -l < "$clocks")" -eq 1 ] && exit
@@ -23,6 +24,7 @@ then
exit
fi
+# edit clocks file in $EDITOR
if [ "$1" = "-e" ]
then
$EDITOR "$clocks"