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