madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://"]
  insteadOf = madduck:

do not conflict with which command
authormartin f. krafft <>
Fri, 27 Mar 2020 19:08:08 +0000 (08:08 +1300)
committermartin f. krafft <>
Fri, 27 Mar 2020 19:08:08 +0000 (08:08 +1300)

index 577b74606eef37acbc1d484011663bdda05e8e2b..38243a3780940d49f7b5bb794234656922c95dba 100755 (executable)
--- a/.bin/tmux
+++ b/.bin/tmux
@@ -44,13 +44,13 @@ fi
 # only without argument create a new session with a random name/id to which we
 # can then attach
-which() { command -v "$@" >/dev/null;}
+hascmd() { command -v "$@" >/dev/null;}
-if   which uuid; then alias uuidgen=uuid
-elif which uuidgen; then :
-elif which python3; then
+if   hascmd uuid; then alias uuidgen=uuid
+elif hascmd uuidgen; then :
+elif hascmd python3; then
   uuidgen() { python3 -c 'import uuid; print(uuid.uuid1())'; }
-elif which python; then
+elif hascmd python; then
   uuidgen() { python -c 'import uuid; print(uuid.uuid1())'; }
   uuidgen() { dd if=/dev/urandom bs=16 count=1 status=none | base64; }