4

I need set environment variables for Android Studio project EVERY TIME when reboot or close terminal. (Ubuntu 14.04) For setting variables I use:

export KEYSTORE_NAME=/home/anna/Documents/keys/NAME.keystore 
export KEYSTORE_NAME_PASSWORD=PASSWORD
export KEY_NAME_ALIAS=NAME
export KEY_NAME_PASSWORD=PASSWORD

How can I set there variables forever?

Anna
  • 41
  • 1
  • 1
  • 3

1 Answers1

7

Add the exports to your ~/.profile, that way they are loaded on every login.

Relevant: https://help.ubuntu.com/community/EnvironmentVariables

Jan
  • 12,291
  • 3
  • 32
  • 38