macOS
Installation
SKILL.md
BSD vs GNU Commands
sed -irequires extension argument:sed -i '' 's/a/b/' file— empty string for no backup, Linux doesn't need itfinddoesn't support-printf— use-exec statorxargswithstat -finsteaddateuses different format flags:date -j -f '%Y-%m-%d' '2024-01-15' '+%s'—-jprevents setting timegrep -P(Perl regex) doesn't exist — usegrep -E(extended) or installggrepvia Homebrewxargsdefaults to/usr/bin/echonot the command — always specify the command explicitlyreadlink -fdoesn't exist — userealpathorpython3 -c "import os; print(os.path.realpath('path'))"
Homebrew Paths
- Apple Silicon:
/opt/homebrew/bin,/opt/homebrew/lib - Intel:
/usr/local/bin,/usr/local/lib - Check architecture:
uname -mreturnsarm64orx86_64 - Homebrew doesn't add to PATH automatically — check
~/.zprofilefor eval line - Running x86 binaries:
arch -x86_64 /bin/bashthen install/run Intel-only tools