From: martin f. krafft Date: Sat, 25 Apr 2009 14:33:13 +0000 (+0200) Subject: prefer NZ over GB X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/ecae1be920d3ca90fef53cfb36e6d1ace423fafe prefer NZ over GB --- diff --git a/.zsh/zprofile/10_locale b/.zsh/zprofile/10_locale index ab47ec9..bb708e1 100644 --- a/.zsh/zprofile/10_locale +++ b/.zsh/zprofile/10_locale @@ -33,7 +33,12 @@ if [ -x =locale ]; then _LOCALE="$(locale -a)" # I prefer British English and UTF-8 over US English and non-UTF-8 + # And if available, I'll take New Zealand-ey (yes, I love you, GIRLFRIEND) case "$_LOCALE" in + *en_NZ.utf8*) + _set_locale en_NZ.UTF-8 + export LANG=en_NZ + ;; *en_GB.utf8*) _set_locale en_GB.UTF-8 export LANG=en_GB @@ -42,6 +47,11 @@ if [ -x =locale ]; then _set_locale en_US.UTF-8 export LANG=en_US ;; + *en_NZ.iso885915*) + _set_locale en_NZ.ISO-8859-15 + warn "no utf-8 locale available" + export LANG=en_NZ + ;; *en_GB.iso885915*) _set_locale en_GB.ISO-8859-15 warn "no utf-8 locale available" @@ -52,6 +62,11 @@ if [ -x =locale ]; then _set_locale en_US.ISO-8859-15 export LANG=en_US ;; + *en_NZ.iso88591*) + warn "no utf-8 locale available" + _set_locale en_NZ.ISO-8859-1 + export LANG=en_NZ + ;; *en_GB.iso88591*) warn "no utf-8 locale available" _set_locale en_GB.ISO-8859-1 @@ -62,6 +77,11 @@ if [ -x =locale ]; then _set_locale en_US.ISO-8859-1 export LANG=en_US ;; + *en_NZ*) + warn "no utf-8 or iso locale available" + _set_locale en_NZ + export LANG=en_NZ + ;; *en_GB*) warn "no utf-8 or iso locale available" _set_locale en_GB