Skip to content

Instantly share code, notes, and snippets.

@m-dango
Last active September 6, 2018 16:30
Show Gist options
  • Save m-dango/1948eedce3c59c8daf39285c59352377 to your computer and use it in GitHub Desktop.
Save m-dango/1948eedce3c59c8daf39285c59352377 to your computer and use it in GitHub Desktop.
Loop for rbenv and its various forks
for i in ~/.langenv/*; do
PATH="$i/bin:$PATH"
bin=$(printf "$i" | rev | cut -d '/' -f 1 | rev)
export $(printf "$bin" | tr a-z A-Z)_ROOT="$i"
eval "$($bin init -)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment