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