[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default language setting on a fresh system [was: Re: base-config cruft cleanup]



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
-- 
					/\ .__|_|_    ._ |/ _ ._._  
				       /--\|  |_| ||_||  |\(_)| | |



Reply to: