aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-05-02 09:30:10 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-05-02 09:30:10 +0800
commit19a01bf9d8a6396c6db0aa80c5a1925961e5002a (patch)
tree0a9061eff259ea511d2f52337acdb00e7e444311
parentccffebfd91e5c3116c30207c469239a40564e830 (diff)
Update
-rwxr-xr-xbin/task/context9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/task/context b/bin/task/context
index 83d1290..1a57e11 100755
--- a/bin/task/context
+++ b/bin/task/context
@@ -4,13 +4,12 @@
4# context 1h2m30s (Update current context with given time) 4# context 1h2m30s (Update current context with given time)
5# context -s 1h20m (Set current context with given time) 5# context -s 1h20m (Set current context with given time)
6# context (Check total time of each context) 6# context (Check total time of each context)
7# 7
8# TODO support minus time
9#
10trap 'exit 1' SIGUSR1 8trap 'exit 1' SIGUSR1
11trap 'which rsync_retry.sh &>/dev/null && setsid rsync_retry.sh $LOG_FILE &>/dev/null &' EXIT 9trap '' EXIT
12 10
13LOG_FILE=~/.context 11# Name of log file is like: ~/log/context/23.w18
12LOG_FILE=~/log/context/`date +%y.w%W`
14PLAN_FILE=~/log/plan.context.md 13PLAN_FILE=~/log/plan.context.md
15PROC=$$ 14PROC=$$
16 15