aboutsummaryrefslogtreecommitdiffstats
path: root/.extras
diff options
context:
space:
mode:
authorSimen A. W. Olsen <so@bjerk.io>2024-05-26 21:38:43 +0200
committerSimen A. W. Olsen <so@bjerk.io>2024-05-26 21:38:43 +0200
commit3a9c76d44f5c60c0f66acad9cbfbc8f255aff0dc (patch)
tree6068d8d27b2108535bbe5359c6934d14f71923ce /.extras
parenta2f43302e1524cc8fe38791e0fdc00a3695fb76b (diff)
downloaddotfiles-3a9c76d44f5c60c0f66acad9cbfbc8f255aff0dc.tar.gz
dotfiles-3a9c76d44f5c60c0f66acad9cbfbc8f255aff0dc.zip
fine-adjustments
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 })})'
}
+
+