From 19a04e23b6298f09766d342e5389d252d33bc759 Mon Sep 17 00:00:00 2001 From: self Date: Sat, 30 Jul 2022 20:27:19 +0100 Subject: mkdream --- zsh/.zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5d1685a..fbd6399 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -250,6 +250,14 @@ mn() { # make note nvim "$HOME/docs/wr/$1" } +mkdream() { # make dream record + 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" +} + + + autoload -Uz compinit compinit # End of lines added by compinstall -- cgit v1.2.1