Work journal scripts

This commit is contained in:
Daniel Flanagan 2021-03-04 10:26:47 -06:00
parent e6241fd59b
commit 950d796b03
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
4 changed files with 5 additions and 2 deletions

View file

@ -108,3 +108,4 @@ alias year 'cal (date +%Y)'
alias mount 'sudo -E mount'
alias pa pulsemixer
alias mail neomutt
alias wje work-journal-entry

1
bin/N
View file

@ -1,3 +1,2 @@
#!/usr/bin/env bash
fn="${1}"; shift; nf "${fn}.md" "$@"

View file

@ -1,3 +1,2 @@
#!/usr/bin/env sh
fn="${1}"; shift; N "$(date +%Y-%m-%d)_${fn}" "$@"

4
bin/work-journal-entry Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env fish
N work/divvy/(date +%Y-%m-%d) && \
pushd $NOTES_PATH && git add -A && \
git commit -m "Edit work journal entry for "(date +%Y-%m-%d) && nsync