~/.pam_environment
# FOO=bar
# PATH DEFAULT=${PATH}:${HOME}/MyPrograms
-
You may not quote the value when doing a simple variable assignment like the FOO=bar example.
-
The syntax used for modifying PATH, which syntax differs from script files, is required for variable expansion to work.
-
~/.pam_environment
is written to when you use various GUIs to set the language or regional formats. Consequently, if you for instanceset LC_TIME
by editing~/.pam_environment
manually, your entry will be overwritten if you afterwards use the Language Support GUI to change the regional formats setting.
~/.profile
export FOO=bar
export PATH="$PATH:$HOME/MyPrograms"