From a01431609f9f3949dad157d375fcb5157c999e15 Mon Sep 17 00:00:00 2001
From: Marty Oehme <contact@martyoeh.me>
Date: Sat, 8 Mar 2025 08:41:53 +0100
Subject: [PATCH] zk: Set working dir to wiki for aliases

Instead of finding the notebook at the wikiroot, we directly change the
current working dir to the notebook for the runtime of the zk command.

This has a couple advantages: Any other commands executed will also pick
up the correct directory, and creating notes in a specific directory
also just _works_ by giving a directory in the notes dir even if we are
somewhere else.
---
 writing/zk/config/sh/alias.d/zk.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/writing/zk/config/sh/alias.d/zk.sh b/writing/zk/config/sh/alias.d/zk.sh
index 344b589..78a57b5 100644
--- a/writing/zk/config/sh/alias.d/zk.sh
+++ b/writing/zk/config/sh/alias.d/zk.sh
@@ -2,7 +2,7 @@
 #
 
 _zk_wiki() {
-    zk --notebook-dir="$WIKIROOT" "$@"
+    zk --working-dir="$WIKIROOT" "$@"
 }
 
 n() {