From df65236c270121fb07d91facd287cc5b8fe80d7f Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 5 Jul 2025 00:16:35 +0800 Subject: [PATCH] feat(homes/rafiq): add note bash script to zk notes cli --- homes/x86_64-linux/rafiq/cli/utilities/zk.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/homes/x86_64-linux/rafiq/cli/utilities/zk.nix b/homes/x86_64-linux/rafiq/cli/utilities/zk.nix index 79394b8..311373a 100644 --- a/homes/x86_64-linux/rafiq/cli/utilities/zk.nix +++ b/homes/x86_64-linux/rafiq/cli/utilities/zk.nix @@ -1,9 +1,19 @@ +{ pkgs, ... }: { persistDirs = [ "notebook" ]; programs.zk = { enable = true; - settings = { - notebook.dir = "~/notebook"; - }; + settings.notebook.dir = "~/notebook"; }; + home.packages = [ + (pkgs.writeShellScriptBin "note" # bash + '' + zk edit -i + pushd ~/notebook + git add . + commit + popd + '' + ) + ]; }