Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find .bash_profile and add to my shell's initialization file? [closed]

Tags:

rvm

I am trying to upgrade ruby using rvm. On the pragmatic site, it says:

The important part is to add the following line to the end of your shell's initialization file (.bash_profile):

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

How do I do this? Where is this initialization file? Please help

like image 687
Amit Erandole Avatar asked Mar 08 '11 02:03

Amit Erandole


1 Answers

It would be /home/$USER/.bash_profile, but would only be present if you're actually using bash as your shell. Other shells will use a 'dot file' with their name in them instead. You can view them with ls -ad $HOME/.*

like image 104
Marc B Avatar answered Nov 17 '22 20:11

Marc B