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