From a04f26343d528f49b8a778cb54f70a4e3166604b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 23 Feb 2024 21:45:28 +0100 Subject: [PATCH] Sync journal via nextcloud --- zsh/zshrc.d/40_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/zshrc.d/40_functions.sh b/zsh/zshrc.d/40_functions.sh index 09d87db..dcef61f 100644 --- a/zsh/zshrc.d/40_functions.sh +++ b/zsh/zshrc.d/40_functions.sh @@ -183,8 +183,8 @@ sb() { } journal() { - journaldir=~/journal/ - file=~/journal/$(date +%Y-%m-%d).md + journaldir=~/sync/journal/ + file="$journaldir/$(date +%Y-%m-%d).md" if [[ ! -e $file ]] ; then cp $journaldir/template.md $file || return fi