scripts/dot-local/bin/link-brewed-php
2023-10-23 15:16:31 +11:00

7 lines
174 B
Bash
Executable file

#!/usr/bin/env zsh
cd ~/bin || exit $?
for bin in /usr/local/opt/php@*/bin/php; do
name=php${${bin##*@}%%/*}
echo "Linking ~/bin/$name -> $bin" >&2
ln -fs $bin $name
done