Dockerized minimalistic Zettelkasten system.
I took these bash scripts zn
and zs
and wrapped them into Docker image to freeze all the configs and to extend the pipeline with automatic notes syncronization with git
.
Prerequisites: Docker
- Set environmental variable
ZK_NOTES
to a directory on host machine with markdown files, which must be a git repository, in which you can successfully rungit push
. For example:
echo 'export ZK_NOTES=$HOME/zk' >> ~/.bashrc
mkdir ~/zk
cd ~/zk
git init
# then create some .md file, commit it and push somewhere (!)
This directory will contain all your Zettelkasten data and will be bind mounted to the container every time you type zk
to enter your Zettelkasten.
- Clone the repo, build docker image with
./build.sh
, runcp zk ~/.local/bin
to "install" the script.
Now you can use zk
to enter your Zettelkasten.
TBD. Run zk
to enter the system, then use zn
and zs
, see these instructions.