M README => README +14 -0
@@ 80,6 80,14 @@ have that execute the appropriate build commands for the type of project it is.
Grab aka, make it executable, and place it somewhere in your path.
+The standard version of aka (~40 lines) that prints usage and has comments
+explaining the code is here:
+
+ https://git.sr.ht/~pi/aka/blob/main/aka
+
+If you just want the business logic, functional equivalent (~10 lines) is here:
+
+ https://git.sr.ht/~pi/aka/blob/main/aka_tiny
## How it works
@@ 116,3 124,9 @@ https://direnv.net/
"direnv is an extension for your shell. It augments existing shells with a new
feature that can load and unload environment variables depending on the current
directory." The direnv website has links to a half dozen similar projects.
+
+## Author
+
+aka was written by Paul Ivanov
+https://pirsquared.org
+https://git.sr.ht/~pi/aka
M aka => aka +1 -1
@@ 1,4 1,5 @@
#!/bin/sh
+# aka, written by Paul Ivanov: https://git.sr.ht/~pi/aka
if [ $# -eq 0 ] ; then
set -- -h # print usage on 0 arguments
fi
@@ 22,7 23,6 @@ aliasFile=${AKA_FILE:-./.aka}
# \ \ \ \
# $0 $1 $2 $3
#
-#
if [ $# -ge 3 ] && [ $1 = alias ] ; then
# cmd='pager'
cmd=$2
M aka_tiny => aka_tiny +1 -0
@@ 1,4 1,5 @@
#!/bin/sh
+# aka, written by Paul Ivanov: https://git.sr.ht/~pi/aka
aliasFile=${AKA_FILE:-./.aka}
if [ $# -ge 3 ] && [ $1 = alias ] ; then
cmd=$2