pyenv/bin/rbenv-rehash

11 lines
170 B
Bash
Executable file

#!/bin/bash
set -e
mkdir -p "${HOME}/.rbenv/shims"
cd "${HOME}/.rbenv/shims"
rm -f *
for file in ../versions/*/bin/*; do
ln -fs ../bin/rbenv-shim "${file##*/}"
done