hlfw.ca

task

Download patch

ref: 7029be52f6933748ddd3dbc05bba42274bb3ee30
parent: a23f89cda579f886e1c843db3baf4fbe158a28c5
author: Michael Misch <michaelmisch1985@gmail.com>
date: Sat Aug 24 12:22:01 PDT 2024

add

--- /dev/null
+++ b/README.md
@@ -1,0 +1,24 @@
+Project-specific namespaces
+
+## Usage
+
+proj [i-] [-n nsdir] [-w wdir] [-s srvfile] project
+
+ - `-i` read project name from stdin
+ - `-n` prefix for namespace files. (default `$home/lib/namespace,`)
+ - `-w` location of your namespace. (default `/mnt/work`)
+ - `-s` srv name. default `/srv/work`
+
+Given a project name, `proj` will set up a namespace based on `$home/lib/namespace.$projectname`. This will post an fd in /srv/work.
+
+## Example namespace
+
+	# assuming project has a docs/ dir with project-specific documents
+	bind /path/to/project /mnt/work
+	bind -a /path/to/additional/related/resources /mnt/work/docs
+	bind -a /path/to/other/resources /mnt/work/docs
+
+Now in any window related to your project, you can `mount /srv/work /mnt/work`
+ - Useful for `acme /mnt/work`
+
+See [this post](https://hlfw.ca/blog/2024-08-23-more-setup.html) for inspiration, and further integration.