This one is just 3 lines of code with no test file. I’m mostly including this post for the sake of completeness.


#!/usr/bin/env bash
# Summary: Display the root directory where versions and shims are kept
echo "$RBENV_ROOT"

The shebang and summary are unsurprising. The only actual line of code just echos the value of an environment variable. When I run rbenv root on my terminal to see what this value is, I get /Users/myusername/.rbenv.

‘nuf said. On to the next file.