: nply/hb

A handbook for UNIX

commit 6796c172f026ed13859c12bc60cc78c84a5770a5
parent 46fd684ad9362c0187173617939ce5a03ec0bc87
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sun, 20 Jul 2025 10:43:32 +0530

Add usage examples in README

Add ascii art to hb

Update author email id in LICENSE and manpage
4 files changed, 39 insertions(+), 28 deletions(-)
M
COPYING
|
2
+-
M
README
|
61
++++++++++++++++++++++++++++++++++++-------------------------
M
hb
|
2
+-
M
hb.1
|
2
+-
diff --git a/COPYING b/COPYING
@@ -1,6 +1,6 @@
 hb is in the public domain.
 
-To the extent possible under law, Bharatvaj <bharatvaj@getsh.org>
+To the extent possible under law, Bharatvaj <bharatvaj@nonplanar.org>
 has waived all copyright and related or neighboring rights to this work.
 
 http://creativecommons.org/publicdomain/zero/1.0/
diff --git a/README b/README
@@ -1,38 +1,49 @@
+hb
+==
+    _______ 
+   |x--|   |
+   |o--|1--|
+   |   |2--|
+   |___|__/ 
 
-NB(1)                     BSD General Commands Manual                    NB(1)
+hb can be used to hold txt databases such as ledger and todo.txt.
 
-NAME
-     nb -- simple notebook manager
+hb provides syncing capabilities to your notebook. Either via VCS or rsync.
 
-SYNOPSIS
-     nb [n|new] file_name.md
-     nb [s|sync]
+Additional sync capabilities can be provided by 
 
-DESCRIPTION
-     The nb provides a lightweight interface for accessing and adding notes on
-     command line.
+You may like hb if you do any of the following,
 
-     nb doesn't complain much and tries to work with what is available.
-     fzf(1) is used for fuzzy searching and it is launched by default if no
-     options are given.
+* Manage personal finance with ledger
+* Write todo's in todo.txt
+* Write blogs
 
-     In the case of fzf unavailability, nb simply changes directory to NB_PATH
+Usage
+-----
 
-     If [sync] option is used, nb attempts a add/commit/push cycle on NB_PATH
-     via git(1)
+hb is a framework that makes storing and retrieving text related information
+effortless. Start by,
 
-ENVIRONMENT
-     NB_PATH  The location of your notebook folder.
+     $ hb new relative-folder/note.txt
 
-AUTHORS
-     Bharatvaj <bharatvaj@getsh.org>
+This creates a note.txt under relative-folder/. Sometimes you may want to
+import a note from your filesystem under hb, To do that use,
+    
+    $ hb new -m Downloads/recipe.txt
+    $ hb new -c WorkingDir/somefile.txt
 
-LICENSE
-     nb is in the public domain.
+-m does a move operations, and -c does a copy operation.
 
-     To the extent possible under law, the creator of this work has waived all
-     copyright and related or neighboring rights to this work.
+After populating files inside hb, you can access them with,
 
-           http://creativecommons.org/publicdomain/zero/1.0/
+    $ hb
 
-BSD                            October 06, 2021                            BSD
+Will start a fuzzy matcher if $FUZZER is set.  If $FUZZER is empty or not
+found in $PATH. hb simply does `cd` to "$HB_PATH"
+
+$HB_PATH should be pointed to the directory, where all the notes will end up.
+If $HB_PATH is not provided, the ".local/share/notes" is used as $HB_PATH.
+
+    $ hb sync
+
+Does a commit, pull, push cycle in the notes folder.
diff --git a/hb b/hb
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# hb - simple notebook manager
+# hb - minimalist handbook
 
 hb_fatal_error() {
 	echo "hb: "
diff --git a/hb.1 b/hb.1
@@ -36,7 +36,7 @@ attempts a add/commit/push cycle on HB_PATH via
 The location of your notebook folder.
 .El
 .Sh AUTHORS
-.An Bharatvaj Aq Mt bharatvaj@getsh.org
+.An Bharatvaj Aq Mt bharatvaj@nonplanar.org
 .Sh LICENSE
 .Nm
 is in the public domain.