Hi i m using mac os and set envrionment variable permently.

i use export envirmentvariable name= envirmentvariable value bu this value not permently
strore in my shell.when i log out into the shell my environment variable remove.

so anybody have an idea that please tell me what should i do for that.

In your home directory, edit the file named .bash_profile . If this doesn't exist, create it. In that file, you can run scripts, set values for your environment variables, etc. It will be run every time you open a new Terminal window.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.