aboutsummaryrefslogtreecommitdiff
path: root/scripts/commands
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-09-14 13:37:00 +0530
committerAkshay Nair <phenax5@gmail.com>2021-09-14 13:37:00 +0530
commit69d464818c7a6e599771fe67d407c163c8a7a0c4 (patch)
treeb361000d0cbfa4609cc66a8a1c707e63d859990d /scripts/commands
parent4d89e28f26075ecf3a8d132fe5177eecef99b565 (diff)
downloadnixos-config-69d464818c7a6e599771fe67d407c163c8a7a0c4.tar.gz
nixos-config-69d464818c7a6e599771fe67d407c163c8a7a0c4.zip
config changes sync
Diffstat (limited to 'scripts/commands')
-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;
+