Update generic stuff.
This commit is contained in:
parent
614e626902
commit
60f658abf2
6 changed files with 5 additions and 50 deletions
27
day
27
day
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Based on day script from mischavandenburg
|
||||
# Based on day script from mischavandenburg
|
||||
# url: https://github.com/mischavandenburg/dotfiles/blob/main/scripts/day
|
||||
|
||||
today=$(date +"%Y-%m-%d")
|
||||
|
@ -11,30 +11,13 @@ file="$SECOND_BRAIN"'/periodic/daily/'"$today.md"
|
|||
cd "$SECOND_BRAIN" || exit 1
|
||||
|
||||
new_note() {
|
||||
touch "$file"
|
||||
cp "$SECOND_BRAIN/templates/daily.md" "$file"
|
||||
|
||||
# Give me a nice format
|
||||
cat <<EOF >"$file"
|
||||
# $today
|
||||
sed -i "s/TODAY/$today/" "$file"
|
||||
|
||||
[[$yesterday]] - [[$tomorrow]]
|
||||
sed -i "s/YESTERDAY/$yesterday/" "$file"
|
||||
|
||||
## Intention
|
||||
|
||||
What do I want to achieve today and tomorrow?
|
||||
|
||||
## Tracking
|
||||
|
||||
- [ ] Cycle
|
||||
- [ ] Strength training
|
||||
- [ ] Watch a movie or tv show episode
|
||||
- [ ] Play/finish a game
|
||||
- [ ] Post a blog post
|
||||
- [ ] Check servers
|
||||
- [ ] Check backups
|
||||
|
||||
## Log
|
||||
EOF
|
||||
sed -i "s/TOMORROW/$tomorrow/" "$file"
|
||||
}
|
||||
|
||||
if [ ! -f "$file" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue