Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialIgnacio San Martin
421 PointsI get a WARNING when installing RVM. Something about '~/.profile' file, you might want to load in .bash_profile
When trying to install RVM I get the following message:
-
WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/ignacio/.bash_profile':
source ~/.profile
The problem is I dont see any file named ".bash_profile" in that location.
4 Answers
Ignacio San Martin
421 PointsI'm using OS X El Capital v 10.11.5
Ethan Rivas
9,979 PointsI found this on Internet, I hope this works for you:
- Replace content of /Users/user/.bash_profile with source ~/.profile
- Travel to folder: cd ~/
- List only hidden files: ls -ld .?*
- Edit file: pico .bash_profile
- Replace content
- Save
Ignacio San Martin
421 PointsGreat after unhiding files I was able to install RVM
Ethan Rivas
9,979 PointsNice! Happy coding :D!
Mars Epaecap
5,110 PointsHere's what I did:
Open Terminal (click Go > Utilities and double-click the Terminal app)
Now copy and paste both lines listed below into Terminal one at a time, and press Return after each line:
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
then open finder and navigate to '/Users/your_user_name/.bash_profile you can just open your downloads folder and do cmd + up-arrow to get to your_user_name folder then just look for the .bash_profile file and open it and paste source ~/.profile in there.
then to hide the .files again do the following in the terminal:
bash defaults write com.apple.finder AppleShowAllFiles NO
killall Finder
Ethan Rivas
9,979 PointsEthan Rivas
9,979 PointsUsually the files with a dot are "hidden" so, you can't see them, which O.S are you using ?