From 07547e8326725c7c0bcc6dab9f3e20a48e46122f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 4 Jul 2019 14:36:45 +0200 Subject: [PATCH] zfs: Add meetingnotes snippet --- zsh/zshrc.d/20_aliases.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/zshrc.d/20_aliases.sh b/zsh/zshrc.d/20_aliases.sh index a4b39eb..24f7088 100644 --- a/zsh/zshrc.d/20_aliases.sh +++ b/zsh/zshrc.d/20_aliases.sh @@ -293,3 +293,10 @@ gb() { builtin cd "$(git rev-parse --show-toplevel)" fi } + +meetingnotes() { + [[ "${1}" ]] || return 1 + file="$(date +%Y-%m-%d)-${1}.md" + cp ~/snippets/meetingnotes.md "${file}" + $EDITOR "${file}" +}