LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   environment variables (https://www.linuxquestions.org/questions/linux-general-1/environment-variables-386598/)

slinky2004 11-25-2005 11:37 PM

environment variables
 
i just installed kde using binary packages and i was a little worried because the install instructions said to make sure that i set an environment variable called KDEDIR. well, i know how to set variables with export, but they go away when i restart. i looked into ways to set environment variables permenantly, like at startup, etc. only to find that the packages i installed made it so that KDEDIR is set at startup. what i'm trying to figure out now is how it does it. can anybody tell me where this environment variable comes from every time?

trickykid 11-25-2005 11:40 PM

/etc/profile is the global file to use
~/.bashrc or ~/.bash_profile are the ones for individual environments for your user.

These are the basics when using the bash shell.

slinky2004 11-25-2005 11:52 PM

oh, slackware puts it out in /etc/profile.d. why dont i have any .bashrc or .bash_profile for setting this stuff individually tho?

Nylex 11-26-2005 02:54 AM

I think that's just because Slackware is quite minimal and just doesn't come with those files (I think I remember Tinkster telling me that). You can of course create them yourself.

trickykid 11-26-2005 09:59 AM

Quote:

Originally posted by Nylex
I think that's just because Slackware is quite minimal and just doesn't come with those files (I think I remember Tinkster telling me that). You can of course create them yourself.
That is true, by default, Slackware doesn't create any basic files for any user in their home directories.. just create it or use the /etc/profile file as a template.


All times are GMT -5. The time now is 02:10 PM.