]>
git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zprofile/10_locale
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
-# Source repository: http://git.madduck.net/v /etc/zsh.git
+# Source repository: git://git.madduck.net /etc/zsh.git
_LOCALE="$(locale -a)"
# I prefer British English and UTF-8 over US English and non-UTF-8
_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)
+ *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
*en_GB.utf8*)
_set_locale en_GB.UTF-8
export LANG=en_GB
_set_locale en_US.UTF-8
export LANG=en_US
;;
_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"
*en_GB.iso885915*)
_set_locale en_GB.ISO-8859-15
warn "no utf-8 locale available"
_set_locale en_US.ISO-8859-15
export LANG=en_US
;;
_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
*en_GB.iso88591*)
warn "no utf-8 locale available"
_set_locale en_GB.ISO-8859-1
_set_locale en_US.ISO-8859-1
export LANG=en_US
;;
_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
*en_GB*)
warn "no utf-8 or iso locale available"
_set_locale en_GB