aboutsummaryrefslogtreecommitdiffstats
path: root/.extras
diff options
context:
space:
mode:
Diffstat (limited to '.extras')
-rwxr-xr-x.extras12
1 files changed, 10 insertions, 2 deletions
diff --git a/.extras b/.extras
index eff3e3f..0647ca0 100755
--- a/.extras
+++ b/.extras
@@ -1,14 +1,20 @@
NOTES_DIR=$HOME/ghq/github.com/simenandre/notes/
function note() {
if [ $1 ]; then
- echo $1 >> $NOTES_DIR/$(date +%Y-%m-%d).md
+ FILE=$NOTES_DIR/$(date +%Y-%m-%d).md
+
+ if [ $2 ]; then
+ FILE=$2
+ fi
+
+ echo $1 >> $FILE
fi
}
function nt() {
if [ $1 ]; then
CONTENT="- [ ] $1"
- note $CONTENT
+ note $CONTENT $2
fi
}
@@ -18,3 +24,5 @@ function getBjerkIssues() {
--json title,body,url,createdAt,assignees,number,labels,comments \
--jq 'map({url, createdAt, title, labels: [.labels[].name], assignees: [.assignees[].login], body, number: "#\(.number)", comments: .comments | map({ body: .body, createdAt: .createdAt })})'
}
+
+