diff options
Diffstat (limited to 'bin/task/context')
-rwxr-xr-x | bin/task/context | 9 |
1 files changed, 6 insertions, 3 deletions
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 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | 2 | ||
3 | # Usage: | 3 | # Usage: |
4 | # context 1h2m30s (Update current context with given time) | 4 | # context 1h2m30s (Update current context with given time) |
5 | # context (Check total time of each context) | 5 | # context -s 1h20m (Set current context with given time) |
6 | # context (Check total time of each context) | ||
6 | 7 | ||
7 | LOG_FILE=~/log/.context && touch $LOG_FILE | 8 | LOG_FILE=~/log/.context && touch $LOG_FILE |
8 | PLAN_FILE=~/log/plan.context.md | 9 | PLAN_FILE=~/log/plan.context.md |
@@ -14,7 +15,9 @@ time="$1" | |||
14 | # If it is 900(seconds), then the minimal symbol of | 15 | # If it is 900(seconds), then the minimal symbol of |
15 | # time display is 15min | 16 | # time display is 15min |
16 | UNIT=900 | 17 | UNIT=900 |
17 | BLOCK_CHAR=▊ | 18 | #BLOCK_CHAR= |
19 | BLOCK_CHAR=▮ #▊◼ | ||
20 | |||
18 | # This dictionary store the valid contexts and the time I plan to spend on | 21 | # This dictionary store the valid contexts and the time I plan to spend on |
19 | declare -A SPEND | 22 | declare -A SPEND |
20 | 23 | ||