pyenv/bin/rbenv-rehash

15 lines
226 B
Text
Raw Normal View History

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