diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-05-02 09:30:10 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-05-02 09:30:10 +0800 |
commit | 19a01bf9d8a6396c6db0aa80c5a1925961e5002a (patch) | |
tree | 0a9061eff259ea511d2f52337acdb00e7e444311 | |
parent | ccffebfd91e5c3116c30207c469239a40564e830 (diff) |
Update
-rwxr-xr-x | bin/task/context | 9 |
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 | # | ||
10 | trap 'exit 1' SIGUSR1 | 8 | trap 'exit 1' SIGUSR1 |
11 | trap 'which rsync_retry.sh &>/dev/null && setsid rsync_retry.sh $LOG_FILE &>/dev/null &' EXIT | 9 | trap '' EXIT |
12 | 10 | ||
13 | LOG_FILE=~/.context | 11 | # Name of log file is like: ~/log/context/23.w18 |
12 | LOG_FILE=~/log/context/`date +%y.w%W` | ||
14 | PLAN_FILE=~/log/plan.context.md | 13 | PLAN_FILE=~/log/plan.context.md |
15 | PROC=$$ | 14 | PROC=$$ |
16 | 15 | ||