|
|
2010-02-09
, 04:40
|
|
Posts: 336 |
Thanked: 610 times |
Joined on Apr 2008
@ France
|
#2
|
echo "export FOO=bar" >> ~/.profile
|
|
2010-02-09
, 09:18
|
|
Posts: 46 |
Thanked: 5 times |
Joined on Sep 2009
|
#3
|
If my memory serves me well, you should be able to create a .profile file in your home directory (~/.profile) and add your exports there.
For example:
Or alternatively, edit /etc/profile, however that might be dangerous as that file is used for nearly all -- if not all -- the terminal sessions that run on the device.Code:echo "export FOO=bar" >> ~/.profile
|
|
2010-02-09
, 09:49
|
|
|
Posts: 245 |
Thanked: 62 times |
Joined on Jan 2009
@ Bad Homburg, Deutschland
|
#4
|
export PATH=$PATH:/home/user/MyDocs
|
|
2010-02-09
, 09:50
|
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#5
|
| The Following 3 Users Say Thank You to Rob1n For This Useful Post: | ||
|
|
2015-07-28
, 07:15
|
|
|
Posts: 306 |
Thanked: 582 times |
Joined on Mar 2012
|
#6
|
Setting environment variables in the ~/.profile works fine for me - I modify both the PATH and PERL5LIB variables there.
twitter-meego[4859]: CRITICAL-Error: Not found XDG_CACHE_HOME environment variable
export DISPLAY=':0'
export XDG_DATA_HOME="$HOME/.local/share/"
export XDG_CACHE_HOME="$HOME/.cache"
eval `/usr/bin/aegis-session --sh-syntax --with-ulimit`
if [ -e /etc/profile.d/language.sh ] ; then
. /etc/profile.d/language.sh
fi
Please advise