generate-week.sh | ||
generate-year.sh | ||
README.md |
log-time
generate-year.sh
Generate timedot file with dates for current (or given) year, e.g.
2023.timedot
.
A user alias to open vim on the current, or given, date is used to log time and modify older entries.
usage:
./generate-year [year]
parameter [year] is optional, omit to use current year
user alias:
function te {
local date=${1:-$(date -I)}
local year=$(date -d $date +%Y)
local timedir="$HOME/plan/time"
local archivedir="$timedir/archive"
if [[ $year < $(date +%Y) ]]; then
vim -c "/$date" $archivedir/$year.timedot
fi
vim -c "/$date" $timedir/$year.timedot
}
generate-week.sh
Generate timedot file with dates for current week, e.g.
2022-13.timedot
.