15 lines
230 B
Bash
Executable File
15 lines
230 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
mkdir -p "${HOME}/.rbenv/shims"
|
|
cd "${HOME}/.rbenv/shims"
|
|
rm -f *
|
|
|
|
for file in ../versions/*/bin/*; do
|
|
shim="${file##*/}"
|
|
cat > "$shim" <<SH
|
|
#!/bin/sh
|
|
exec rbenv exec ${file##*/} \$@
|
|
SH
|
|
chmod +x "$shim"
|
|
done
|