pyenv/libexec/rbenv-rehash

15 lines
234 B
Text
Raw Normal View History

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