From 950d796b03f72625ce1db42d68704affc923f94f Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 4 Mar 2021 10:26:47 -0600 Subject: [PATCH] Work journal scripts --- apps/shell/fish/aliases.fish | 1 + bin/N | 1 - bin/note | 1 - bin/work-journal-entry | 4 ++++ 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 bin/work-journal-entry diff --git a/apps/shell/fish/aliases.fish b/apps/shell/fish/aliases.fish index 2d2e656..5fa0c19 100755 --- a/apps/shell/fish/aliases.fish +++ b/apps/shell/fish/aliases.fish @@ -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 diff --git a/bin/N b/bin/N index 5b3285c..79b9441 100755 --- a/bin/N +++ b/bin/N @@ -1,3 +1,2 @@ #!/usr/bin/env bash - fn="${1}"; shift; nf "${fn}.md" "$@" diff --git a/bin/note b/bin/note index c52ecf0..0715d73 100755 --- a/bin/note +++ b/bin/note @@ -1,3 +1,2 @@ #!/usr/bin/env sh - fn="${1}"; shift; N "$(date +%Y-%m-%d)_${fn}" "$@" diff --git a/bin/work-journal-entry b/bin/work-journal-entry new file mode 100755 index 0000000..77414f1 --- /dev/null +++ b/bin/work-journal-entry @@ -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