feat(arch): organize ELF binaries into arch/{x86_64,aarch64,armv6l,i386} with bin-env and arch-dispatcher

This commit is contained in:
Kryštof Pešek
2026-11-05 18:02:54 +01:00
parent 45a3731cbc
commit 6322ff9e89
49 changed files with 47 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
# ~/bin/bin-env — Architecture-Aware Fleet Path Setup
# Sourced in ~/.bashrc and ~/.zshrc across t520, bazina, boxC, penguin, phone
_ARCH="$(uname -m)"
if [ -d "$HOME/bin/arch/$_ARCH" ]; then
case ":$PATH:" in
*":$HOME/bin/arch/$_ARCH:"*) ;;
*) export PATH="$HOME/bin/arch/$_ARCH:$PATH" ;;
esac
fi
case ":$PATH:" in
*":$HOME/bin:"*) ;;
*) export PATH="$HOME/bin:$PATH" ;;
esac
unset _ARCH