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