From 19a01bf9d8a6396c6db0aa80c5a1925961e5002a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 2 May 2023 09:30:10 +0800 Subject: Update --- bin/task/context | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/task') 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 @@ # context 1h2m30s (Update current context with given time) # context -s 1h20m (Set current context with given time) # context (Check total time of each context) -# -# TODO support minus time -# + trap 'exit 1' SIGUSR1 -trap 'which rsync_retry.sh &>/dev/null && setsid rsync_retry.sh $LOG_FILE &>/dev/null &' EXIT +trap '' EXIT -LOG_FILE=~/.context +# Name of log file is like: ~/log/context/23.w18 +LOG_FILE=~/log/context/`date +%y.w%W` PLAN_FILE=~/log/plan.context.md PROC=$$ -- cgit v1.2.3-70-g09d2