X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f034880a62fc8c886156284459fb6edd56785209;hb=5b84a72e933748d16e67e6abfa8ee55879a97440;hp=4515b9db673b5dd3d9646ab6a22d024a65e312ef;hpb=8df48ec80b156ee8812e69ac7b0aeb1f4d974cb6;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4515b9d..f034880 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: Mit Mär 14 15:48:34 CET 2007 [mika] +# Latest change: Sam Mär 17 20:12:26 CET 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -577,6 +577,21 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# " alias rd='rmdir' alias md='mkdir' + # see http://www.cl.cam.ac.uk/~mgk25/unicode.html#term for details + alias term2iso="echo 'Setting terminal to iso mode' ; echo -e '%@'" + alias term2utf="echo 'Setting terminal to utf-8 mode'; echo -e '%G'" + + alias utf2iso='if isutfenv ; then + for ENV in `env | grep UTF` ; do + eval export "$(echo $ENV | sed 's/UTF-8/iso885915/')" + done + fi' + alias iso2utf='if isutfenv ; then + for ENV in `env | grep '\.iso'` ; do + eval export "$(echo $ENV | sed 's/iso.*/UTF-8/')" + done + fi' + # set up software synthesizer via speakup alias swspeak=' aumix -w 90 -v 90 -p 90 -m 90 @@ -660,8 +675,10 @@ Enjoy your grml system with the zsh!$reset_color" alias acp='apt-cache policy' alias adg="$SUDO apt-get dist-upgrade" alias agi="$SUDO apt-get install" + alias ati="$SUDO aptitude install" alias ag="$SUDO apt-get upgrade" alias au="$SUDO apt-get update" + alias up="$SUDO aptitude update ; $SUDO aptitude upgrade" alias dbp='dpkg-buildpackage' alias ge='grep-excuses'