summaryrefslogtreecommitdiff
path: root/bin/extra/clock
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/clock')
-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"