home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e09a8d5
)
Add work log template functions
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 3 Apr 2019 11:46:03 +0000
(07:46 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 3 Apr 2019 11:46:03 +0000
(07:46 -0400)
lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/lib/login_functions.sh
b/lib/login_functions.sh
index
ba0940a
..
add0cd0
100644
(file)
--- a/
lib/login_functions.sh
+++ b/
lib/login_functions.sh
@@
-64,6
+64,36
@@
gh_clone_org() {
gh_clone 'orgs' "$1"
}
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"
}
weather() {
curl "http://wttr.in/$WEATHER_LOCATION"
}
This page took
0.024226 seconds
and
4
git commands to generate.