From c74169974e67152be756eafa5eef097ff9e1140c Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 10 Apr 2023 14:39:35 +0800 Subject: Update --- bin/task/context | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin/task/context') diff --git a/bin/task/context b/bin/task/context index 600eae0..6e48df3 100755 --- a/bin/task/context +++ b/bin/task/context @@ -1,8 +1,9 @@ #! /bin/bash # Usage: -# context 1h2m30s (Update current context with given time) -# context (Check total time of each context) +# context 1h2m30s (Update current context with given time) +# context -s 1h20m (Set current context with given time) +# context (Check total time of each context) LOG_FILE=~/log/.context && touch $LOG_FILE PLAN_FILE=~/log/plan.context.md @@ -14,7 +15,9 @@ time="$1" # If it is 900(seconds), then the minimal symbol of # time display is 15min UNIT=900 -BLOCK_CHAR=▊ +#BLOCK_CHAR= +BLOCK_CHAR=▮ #▊◼ + # This dictionary store the valid contexts and the time I plan to spend on declare -A SPEND -- cgit v1.2.3-70-g09d2