Self-healing autopoietic shell: f(), tests, docs, interactive demo, fx fix-source layer

This commit is contained in:
2026-08-17 22:30:18 -04:00
commit 8b30120fba
14 changed files with 767 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# thefuck bridge: only fires if thefuck is installed. Note that thefuck
# --yes decides *and executes* its own suggestion, so by the time this
# candidate is shown it may have already run once via thefuck -- treat
# it as informational, not a dry-run.
command -v thefuck >/dev/null 2>&1 || exit 0
cmd="$1"
[ -n "$cmd" ] || exit 0
thefuck --yes "$cmd" 2>/dev/null | tr -d '\342\200\213' | tail -1