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.
This commit is contained in:
Marty Oehme 2025-03-08 08:41:53 +01:00
parent ea066eebb5
commit a01431609f
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -2,7 +2,7 @@
#
_zk_wiki() {
zk --notebook-dir="$WIKIROOT" "$@"
zk --working-dir="$WIKIROOT" "$@"
}
n() {