From a561c51e90bfb9b2500adb874490f195a9757549 Mon Sep 17 00:00:00 2001 From: self Date: Mon, 19 Sep 2022 17:10:07 +0100 Subject: Moved mk~ functions into separate file --- zsh/.zshrc-mk | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 zsh/.zshrc-mk (limited to 'zsh/.zshrc-mk') diff --git a/zsh/.zshrc-mk b/zsh/.zshrc-mk new file mode 100644 index 0000000..a93d7a0 --- /dev/null +++ b/zsh/.zshrc-mk @@ -0,0 +1,45 @@ +mkwr() { + nvim "$HOME/docs/wr/$1" +} + +mkrec() { + mkwr "rec/$1" +} + +mkkic() { + mkwr "kic/$1" +} + +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 + mkwr "mn/$1" +} + +lle() { # Life Log Entry: L~ + if [ -z $1 ] ; then DT="today" else DT="$1" fi + 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: H~ + if [ -z $1 ] ; then DT="today" else DT="$1" fi + 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: M~ + if [ -z $1 ] ; then DT="yesterday" else DT="$1" fi + 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: 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" +} -- cgit v1.2.1