chore: update readme

This commit is contained in:
Viktor Varland 2023-04-11 17:28:38 +02:00
parent 6ff5828ff2
commit 84cd582537
Signed by: varl
GPG key ID: 7459F0B410115EE8

29
README
View file

@ -7,8 +7,24 @@ usage:
parameter [year] is optional, omit to use current year parameter [year] is optional, omit to use current year
generate-week.sh
----------------
cron usage:
1 0 * * 1 TEMPLATE="dhis2 7.5" TIME_DIR=~/plan/time /home/varl/bin/generate-week.sh write
user alias: user alias:
function te () {
$EDITOR ~/plan/time/current.timedot
}
user alias
----------
add to e.g. .zshrc:
function te { function te {
local date=${1:-$(date -I)} local date=${1:-$(date -I)}
local year=$(date -d $date +%Y) local year=$(date -d $date +%Y)
@ -23,16 +39,3 @@ user alias:
vim -c "/$date" $timedir/$year.timedot vim -c "/$date" $timedir/$year.timedot
} }
generate-week.sh
----------------
cron usage:
1 0 * * 1 TEMPLATE="dhis2 7.5" TIME_DIR=~/plan/time /home/varl/bin/generate-week.sh write
user alias:
function te () {
$EDITOR ~/plan/time/current.timedot
}