X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=lib%2Flogin_functions.sh;h=add0cd034f7f3843097bcf3ddb1b4bc90dc575fd;hb=c45bdb58ae8265857b990931e5584ee88beb6888;hp=ba0940a14a80315924a675e9c68b950bd214ec8d;hpb=e09a8d5a855d5ba947be8bb203737c0e5949554e;p=khome.git diff --git a/lib/login_functions.sh b/lib/login_functions.sh index ba0940a..add0cd0 100644 --- a/lib/login_functions.sh +++ b/lib/login_functions.sh @@ -64,6 +64,36 @@ gh_clone_org() { gh_clone 'orgs' "$1" } +work_log_template() { +cat << EOF +$(date +%F) +========== + +Morning report +-------------- + +### Yesterday + +### Today + +### Blockers + +Day's notes +----------- +EOF +} + +work_log() { + mkdir -p "$DIR_WORK_LOG" + file_work_log_today="${DIR_WORK_LOG}/$(date +%F).md" + if [ ! -f "$file_work_log_today" ] + then + work_log_template > "$file_work_log_today" + fi + vim "$file_work_log_today" + +} + weather() { curl "http://wttr.in/$WEATHER_LOCATION" }