/etc/zsh/zshrc: unalias utf2iso and iso2utf only it it is set 0.3.25
authorMichael Prokop <mika@grml.org>
Sat, 15 Sep 2007 08:44:30 +0000 (10:44 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 15 Sep 2007 08:44:30 +0000 (10:44 +0200)
debian/changelog
etc/zsh/zshrc

index e96c0d9..4a01ec4 100644 (file)
@@ -1,3 +1,9 @@
+grml-etc-core (0.3.25) unstable; urgency=low
+
+  * /etc/zsh/zshrc: unalias utf2iso and iso2utf only it it's set.
+
+ -- Michael Prokop <mika@grml.org>  Sat, 15 Sep 2007 10:44:11 +0200
+
 grml-etc-core (0.3.24) unstable; urgency=low
 
   [ Frank Terbeck ]
index 4555b7a..0f43289 100644 (file)
@@ -809,7 +809,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# "
   alias term2iso="echo 'Setting terminal to iso mode' ; print -n '\e%@'"
   alias term2utf="echo 'Setting terminal to utf-8 mode'; print -n '\e%G'"
 
-  unalias utf2iso # make sure it is not assigned yet
+  type utf2iso &>/dev/null && unalias utf2iso # make sure it is not assigned yet
   utf2iso() {
     if isutfenv ; then
        for ENV in $(env | command grep -i '.utf') ; do
@@ -818,7 +818,7 @@ ${BLUE}%n${NO_COLOUR}@%m %40<...<%B%~%b%<< %# "
      fi
   }
 
-  unalias iso2utf # make sure it is not assigned yet
+  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