X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=0f43289dfc8c8cf51bf80d3b38c55c7499600e99;hb=b44b0cda8134f3195e6a7049c5bef398ee26b402;hp=b38e25e813166019e7df3a16aef9bb931a07c7c3;hpb=3d775f337d84380434d1e2bf2894034b4fd35eee;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b38e25e..0f43289 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Jul 07 10:56:20 CEST 2007 [mika] +# Latest change: Sam Sep 15 10:24:10 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -165,7 +165,7 @@ #f1# Checks whether or not you're running grml-small isgrmlsmall() { [[ ${${${(f)"$(/dev/null && unalias utf2iso # make sure it is not assigned yet + utf2iso() { + if isutfenv ; then + for ENV in $(env | command grep -i '.utf') ; do + eval export "$(echo $ENV | sed 's/UTF-8/iso885915/ ; s/utf8/iso885915/')" + done + fi + } + + type iso2utf &>/dev/null && unalias iso2utf # make sure it is not assigned yet + iso2utf() { + if ! isutfenv ; then + for ENV in $(env | command grep -i '\.iso') ; do + eval export "$(echo $ENV | sed 's/iso.*/UTF-8/ ; s/ISO.*/UTF-8/')" + done + fi + } # set up software synthesizer via speakup alias swspeak='