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 trial

General Discussion Precompiling Assets

Thanks for your helpful course. I have a question.

Is it ok if I set export environment variables in the .bashrc file?

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

It shouldn't cause any harm, but whether it will work correctly depends on what you need the environment variables set for. Using export in a user's .bashrc will ensure the environment variables you set are active for that user anytime they run the Bash shell on that machine. If you want variables set regardless of the shell, you might set them in the .profile file instead. You can read more here: https://serverfault.com/questions/261802/what-are-the-functional-differences-between-profile-bash-profile-and-bashrc