feat(homes/rafiq): add note bash script to zk notes cli
This commit is contained in:
parent
4b802b372e
commit
df65236c27
1 changed files with 13 additions and 3 deletions
|
@ -1,9 +1,19 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
persistDirs = [ "notebook" ];
|
persistDirs = [ "notebook" ];
|
||||||
programs.zk = {
|
programs.zk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings.notebook.dir = "~/notebook";
|
||||||
notebook.dir = "~/notebook";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.writeShellScriptBin "note" # bash
|
||||||
|
''
|
||||||
|
zk edit -i
|
||||||
|
pushd ~/notebook
|
||||||
|
git add .
|
||||||
|
commit
|
||||||
|
popd
|
||||||
|
''
|
||||||
|
)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue