pyenv/bin/rbenv-rehash
Joshua Peek eccdec3740 Merge branch 'master' into cp-shim
Conflicts:
	bin/rbenv-shim
2011-08-02 19:38:35 -05:00

14 lines
234 B
Bash

#!/usr/bin/env 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