Marcin Owsiany schrieb:
> > Something like ~/.environment would probably make more sense,
> 
> Right. Good idea. Now we need to think of a name that isn't
> already used by some shell.

(that shell'd better use ~/.<shellname>_environment ...)

And of a way to make it useable with bourne, C and other shells
(exporting is different). Proposal:

---- ~/.global_environment
LANG=de_CH
LC_MESSAGES=C
----

---- in ~/.bash_profile and /etc/X11/Xsession.d/somewhere
eval `awk '/^[^#]/{ printf("export %s\n", $0); } ~/.global_environment`
----

For csh the awk script could look like this:

awk 'BEGIN{ FS="="; } /^[^#]/{ printf("setenv %s %s\n", $1, $2); }'

Do you file the bugs? I'm on my way out here.

ciao, 2ri
-- 
                                        /\ .__|_|_    ._ |/ _ ._._  
                                       /--\|  |_| ||_||  |\(_)| | |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to