pyenv/bin/rbenv-rehash

15 lines
230 B
Plaintext
Raw Normal View History

2011-08-02 17:43:43 -05:00
#!/bin/bash -e
2011-08-01 15:50:26 -05:00
mkdir -p "${HOME}/.rbenv/shims"
2011-08-01 16:43:19 -05:00
cd "${HOME}/.rbenv/shims"
rm -f *
2011-08-01 15:50:26 -05:00
for file in ../versions/*/bin/*; do
shim="${file##*/}"
cat > "$shim" <<SH
#!/bin/sh
exec rbenv exec ${file##*/} \$@
SH
chmod +x "$shim"
2011-08-01 15:50:26 -05:00
done