7 lines
174 B
Bash
Executable file
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
|