I recently downloaded Ruby onto my mac via rbenv, and I read instructions that showed me how to start up rbenv every time I open terminal. Is there a way to view all the startup scripts for terminal?

Here's the script I used:

echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile

source ~/.bash_profile


Most startup settings for terminal/console (including scripts) are kept in or loaded from ~/.bashrc and ~/.bash_profile, which are hidden files in your user home directory.

You can edit them manually with a text editor to suit your preferences (make a backup of them first, just in case).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.