Results 1 to 2 of 2
Thread: Evil environment variables
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
05-28-2005 #1
- Join Date
- Jan 2005
- Location
- Chicago (USA)
- Posts
- 1,028
Evil environment variables
-
05-28-2005 #2
- Join Date
- Nov 2004
- Location
- home
- Posts
- 796
If you set a variable, it will only last until that shell is exited. If you want to keep it, the best thing (if you're using bash) is to export it in you ~/.bashrc:
export MONKEY="cheese and cucumbers"
.bashrc is sourced whenever a bash shell is started, so the export will happen and the variable will be defined.