chore: deprecate generate-week

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

31
README
View file

@ -7,24 +7,8 @@ usage:
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:
function te () {
$EDITOR ~/plan/time/current.timedot
}
user alias
----------
add to e.g. .zshrc:
function te {
local date=${1:-$(date -I)}
local year=$(date -d $date +%Y)
@ -39,3 +23,18 @@ add to e.g. .zshrc:
vim -c "/$date" $timedir/$year.timedot
}
generate-week.sh
----------------
/!\ deprecated in favour of generate-year.sh.
cron usage:
1 0 * * 1 TEMPLATE="work 8" TIME_DIR=~/plan/time /home/varl/bin/generate-week.sh write
user alias:
function te () {
$EDITOR ~/plan/time/current.timedot
}