zsh-login: run unicode_start if running inside utf environment
[grml-scripts-core.git] / usr_bin / zsh-login
index c9d4e2e..69688f1 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Son Mai 28 14:20:08 CEST 2006 [mika]
+# Latest change: Mon Dez 18 01:34:26 CET 2006 [mika]
 ################################################################################
 
 [ -r /etc/grml_version ] && GRMLVERSION=$(cat /etc/grml_version) || GRMLVERSION='(no version information available)'
@@ -32,6 +32,11 @@ if [ -x /usr/bin/flite ] ; then
  esac
 fi
 
+# activate unicode console if running within utf8 environment
+if [ -r /etc/default/locale ] ; then
+   grep -q "LANG=.*UTF" /etc/default/locale && unicode_start
+fi
+
 exec /bin/zsh -l
 
 ## END OF FILE #################################################################