aboutsummaryrefslogtreecommitdiff
path: root/scripts/commands/:weekly-review
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/commands/:weekly-review')
-rwxr-xr-xscripts/commands/:weekly-review37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/commands/:weekly-review b/scripts/commands/:weekly-review
new file mode 100755
index 0000000..9b16b12
--- /dev/null
+++ b/scripts/commands/:weekly-review
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+
+REVIEWS_DIR="$HOME/nixos/extras/notes/weekly-reviews";
+
+get_date() { date +"%Y-%m-%d"; }
+
+template() {
+ local date=$(get_date);
+echo "# $date
+
+### What did you achieve this week?
+ -
+
+### What do I want to achieve next week?
+ -
+
+### What are you grateful for?
+ -
+
+### What went wrong?
+ -
+
+### How are you feeling?
+
+
+";
+}
+
+
+review_file="$REVIEWS_DIR/$(get_date).md";
+
+if [[ ! -f "$review_file" ]]; then
+ template > $review_file;
+fi
+
+sensible-terminal -e sensible-editor $review_file;
+