aboutsummaryrefslogtreecommitdiffstats
path: root/.extras
diff options
context:
space:
mode:
Diffstat (limited to '.extras')
-rwxr-xr-x.extras14
1 files changed, 14 insertions, 0 deletions
diff --git a/.extras b/.extras
new file mode 100755
index 0000000..7518fbf
--- /dev/null
+++ b/.extras
@@ -0,0 +1,14 @@
+NOTES_DIR=$HOME/ghq/github.com/simenandre/notes/
+function note() {
+ if [ $1 ]; then
+ echo $1 >> $NOTES_DIR/$(date +%Y-%m-%d).md
+ fi
+}
+
+function nt() {
+ if [ $1 ]; then
+ CONTENT="- [ ] $1"
+ note $CONTENT
+ fi
+}
+