OS X Yosemite permanent environement variables

Solution 1:

have you tried adding them to your .bash_profile?

assuming you know how to use the vi editor:

  1. open terminal
  2. enter vi ~/.bash_profile
  3. add one line like the following for each environment variable you need to persist
    • export PS1='\[\033[34m\]\w\[\e[m\] 🐘💨 '
  4. Save the file.
  5. Restart your computer.

The only other thing would be to consider backing up your .bash_profile in case somehow you lose or corrupt it.