diff options
author | self <george@gabbott.dev> | 2022-12-18 20:14:03 +0000 |
---|---|---|
committer | self <george@gabbott.dev> | 2022-12-18 20:14:03 +0000 |
commit | c24cc421066b692a87d36d9bf78a47c0c0d697e5 (patch) | |
tree | a8250ef050998bb508fb6b830f32f81944aed4fa /zsh/.zshrc-mk | |
parent | 0ad47e25832df38cf1465c0450907eca93a9d880 (diff) |
Fix yer, comment evmnhol for some reason, add mnfin
Diffstat (limited to 'zsh/.zshrc-mk')
-rw-r--r-- | zsh/.zshrc-mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/zsh/.zshrc-mk b/zsh/.zshrc-mk index 84a7125..8fec533 100644 --- a/zsh/.zshrc-mk +++ b/zsh/.zshrc-mk @@ -109,6 +109,9 @@ evmnhol() { if [ -z "$1" ] ; then echo "You need to pass a date"; return; else DT="$1" fi if [ ! -d "$HOLIDAY/$EVMNHOL_DIR" ] ; then echo "$HOLIDAY/$EVMNHOL_DIR does not exist"; return; fi + # TODO: add logic to verify the date using md. But check md actually + # exists first. Use date +%s -d "$(cat md | grep begin | cut -d'=' -f2)" + mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)" nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/H$(date --iso-8601 -d $DT).txt" ln -s "../../$(date +%Y-%m -d $DT)/H$(date --iso-8601 -d $DT).txt" "$HOLIDAY/$EVMNHOL_DIR/H$(date --iso-8601 -d $DT).txt" @@ -127,10 +130,11 @@ mer() { # Month End Recap: M~ nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/M$(date +%Y-%m -d $DT).txt" } +# Run with the year. yer() { # Year End Recap: Y~ if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi - mkdir -p "$HOME/docs/wr/lle/$(date +%Y -d $DT)-12" - nvim "$HOME/docs/wr/lle/$(date +%Y -d $DT)-12/Y$(date +%Y -d $DT).txt" + mkdir -p "$HOME/docs/wr/lle/$1-12" + nvim "$HOME/docs/wr/lle/$1-12/Y$1.txt" } # old atd and cld, soon to be gotten rid of anyways @@ -143,4 +147,5 @@ abbrev-alias cld="wr cld/calendar" abbrev-alias cldcmp="wr cld/calendar-cmp" abbrev-alias cldrec="wr cld/calendar-recurring" - +# mnfin +alias mnfin='cd ~/docs/wr/trk/fin/; nvim $(date +%Y-%m)' |