summaryrefslogtreecommitdiff
path: root/bin/extra
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-21 16:06:25 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-21 16:06:25 +0200
commit10e12bbe481af7974739060f51210f7948fc1df9 (patch)
tree83722aca11901a5bf7ad433aac6a6b0ba05cf79a /bin/extra
parent4775688e796faece72c6621bcd94f6eb4ebac5ff (diff)
parentc9cc72113521b793d1baa0d2f558b97478a6acf4 (diff)
Merge branch 'main' of debuc.com:dotfiles
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"