1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00
Files
pyenv/bin/rbenv-rehash
2011-08-02 18:55:14 -05:00

15 lines
224 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 $shim \$@
SH
chmod +x "$shim"
done