zshrc: Insert a condition for loading /etc/default/locale
authorFrank Terbeck <ft@bewatermyfriend.org>
Wed, 8 Jul 2009 10:59:31 +0000 (12:59 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Wed, 8 Jul 2009 10:59:31 +0000 (12:59 +0200)
commit0d540a9391197ca4039246e4b5dc72b625d0df36
tree190a87d2e3e5cbb5a07ad8a46becf9536b32e5ab
parentec28d009086f81e755b7b508445e5b7e3584ff44
zshrc: Insert a condition for loading /etc/default/locale

In 76706fcdd9c160d7f3212e597d2139f45531da72 we started loading
/etc/default/locale unconditionally in order to pick up sane defaults
for a given system.

While this is a good idea in most cases, because users may still
customize the locale for their interactive sessions in ~/.zshrc.local,
this does cause problems when you need most of your shells in the
default locale and a few in another from time to time.

That is the case for 'iso-term' a script that changes utf8 parts of the
default environment to iso885915 and then calls an x11 terminal
emulator.

This change enables us to conditionally turn off sourcing the default
locale file by inserting ZSH_NO_DEFAULT_LOCALE=1 into the environment of
the calling process.
etc/zsh/zshrc