fix: centralize and nixifiy in 'zk' module

This commit is contained in:
2026-04-26 11:55:27 +02:00
parent 8f5caaed41
commit 730dd23967
10 changed files with 76 additions and 39 deletions

View File

@@ -0,0 +1,13 @@
if [ ! -d "$ZK_PATH" ]; then
echo "[zk] Setting up zettelkasten"
gh repo clone zk "$ZK_PATH"
else
echo "[zk] Zettelkasten already set up."
fi
read -p "Would you like open your zettelkasten? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
$EDITOR "$ZK_PATH"
fi