summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-07-30 20:35:05 +0100
committerself <george@gabbott.dev>2022-07-30 20:35:05 +0100
commit221f6dfe9fb42af3f2926716337c77f5bb17327d (patch)
tree9f15b87c9872e954e1b6d47f2e011ca08f3cf65e
parent19a04e23b6298f09766d342e5389d252d33bc759 (diff)
Changed location and file format of lle, mer, yer
-rw-r--r--zsh/.zshrc33
1 files changed, 16 insertions, 17 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index fbd6399..18c435e 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -222,40 +222,39 @@ abbrev-alias gcr="git-clone-add-remotes"
alias pkg-query="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'"
alias r="prime-run newsboat"
-lle() { # Life Log Entry
+lle() { # Life Log Entry: L~
if [ -z $1 ] ; then DT="today" else DT="$1" fi
- mkdir -p "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)"
- nvim "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)/L$(date --iso-8601 -d $DT).txt"
+ mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)"
+ nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/L$(date --iso-8601 -d $DT).txt"
}
-holc () { # Holiday Entry
+holc () { # Holiday Entry: H~
if [ -z $1 ] ; then DT="today" else DT="$1" fi
- mkdir -p "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)"
- nvim "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)/H$(date --iso-8601 -d $DT).txt"
+ 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"
}
-mer() { # Month End Recap - TODO: get this to work just with e.g. mer 2022-01
+mer() { # Month End Recap: M~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
- mkdir -p "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)"
- nvim "$HOME/docs/daily-log/$(date +%Y-%m -d $DT)/L$(date +%Y-%m -d $DT)-month-end-recap.txt"
+ mkdir -p "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)"
+ nvim "$HOME/docs/wr/lle/$(date +%Y-%m -d $DT)/M$(date +%Y-%m -d $DT).txt"
}
-yer() { # Year End Recap - TODO: see mer todos
+yer() { # Year End Recap: Y~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
- mkdir -p "$HOME/docs/daily-log/$(date %Y -d $DT)-12"
- nvim "$HOME/docs/daily-log/$(date +%Y -d $DT)-12/$(date +%Y -d $DT)-year-end-recap.txt"
+ 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"
}
-mn() { # make note
- nvim "$HOME/docs/wr/$1"
-}
-
-mkdream() { # make dream record
+mkdream() { # Dream Record: D~
if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi
mkdir -p "$HOME/docs/wr/dream"
nvim "$HOME/docs/wr/dream/D$(date --iso-8601 -d $DT).txt"
}
+mn() { # make note
+ nvim "$HOME/docs/wr/$1"
+}
autoload -Uz compinit